FROM ubuntu:jammy
COPY sources.list /etc/apt/
RUN (apt-get update)
RUN (apt-get install -y vim netcat telnet httpie)
RUN (apt-get install -y ubuntu-drivers-common)
RUN (apt-get install -y nvidia-driver-525-server)
RUN (apt-get install -y nvtop)
打包
─➤ make build 130 ↵
docker build -t "ponponon/cuda_env" .
[+] Building 2434.6s (9/11)
[+] Building 2435.4s (9/11)
[+] Building 2452.5s (9/11)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 286B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:jammy 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 34B 0.0s
=> [1/7] FROM docker.io/library/ubuntu:jammy 0.0s
=> CACHED [2/7] COPY sources.list /etc/apt/ 0.0s
=> CACHED [3/7] RUN (apt-get update) 0.0s
=> CACHED [4/7] RUN (apt-get install -y vim netcat telnet httpie) 0.0s
=> CACHED [5/7] RUN (apt-get install -y ubuntu-drivers-common) 0.0s
=> [6/7] RUN (apt-get install -y nvidia-driver-525-server) 2452.5s
=> => # 96. Ukrainian
=> => # 97. Urdu (Pakistan)
=> => # 98. Uzbek
=> => # 99. Vietnamese
=> => # 100. Wolof
=> => # Country of origin for the keyboard:
^CERRO[2452] got 3 SIGTERM/SIGINTs, forcing shutdown
make: *** [Makefile:12: docker-build] Interrupt
这里要我输入国家序号,但是这里被截断了,导致我找不到中国怎么办?
没有找到正面方法,绕过了
https://stackoverflow.com/questions/63476497/docker-build-with-ubuntu-18-04-image-hangs-after-prompting-for-country-of-origin