当我用对接器构建一个Ubuntu18.04映像时,它会提示
键盘原产国:
当我输入一个数字后,它就挂了。这是我的Dockerfile:
FROM ubuntu:18.04
RUN apt update
RUN apt install software-properties-common -y
RUN add-apt-repository ppa:graphics-drivers
RUN apt install nvidia-driver-440 -y我要怎么做才能与Docker一起建立一个ubuntu18.04形象?
发布于 2020-08-18 21:06:37
如果设置了环境变量:DEBIAN_FRONTEND=noninteractive,则可以跳过该交互式输入。
Dockerfile应该如下所示:
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update
RUN apt install software-properties-common -y
RUN add-apt-repository ppa:graphics-drivers
RUN apt install nvidia-driver-440 -y发布于 2022-06-15 09:51:19
大多数问题将通过在Dockerfile.中添加ENV DEBIAN_FRONTEND=noninteractive来解决
不过,
- `RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections`
- I took that line from [GitHub issue: Error debconf: unable to initialize frontend](https://github.com/moby/moby/issues/27988#issuecomment-462809153)ENV DEBIAN_FRONTEND=noninteractive
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectionshttps://stackoverflow.com/questions/63476497
复制相似问题