9
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

DockerでUbuntu + CUDA環境作ろうとして keyboard-configuration に邪魔されたとき

Posted at

事情により表題のような環境を作りたくなったのだが、
普通にやると keyboard-configuration の設定画面でとまってしまって
地味にハマったのでメモ。

結論としては ARG DEBIAN_FRONTEND=noninteractive 指定しておけばよさげ。

example
FROM ubuntu:16.04

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y wget

RUN wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.44-1_amd64.deb
RUN dpkg -i cuda-repo-ubuntu1604_8.0.44-1_amd64.deb
RUN apt-get update
RUN apt-get install -y cuda

(すなおに https://hub.docker.com/r/nvidia/cuda/ とか使っとけばいいだけの話かもしれないが...)

参考

9
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?