【发布时间】:2019-10-09 17:23:05
【问题描述】:
尝试在 docker 构建期间安装 dnsutils。
Dockerfile:
# Dockerfile - this is a comment. Delete me if you want.
FROM python:2.7
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
RUN apt-get update
RUN apt-get install dnsutils
CMD ["python","unitTest.py"]
输出:
Do you want to continue? [Y/n] Abort.
The command `/bin/sh -c apt-get install dnsutils` returned a non-zero code: 1
如何在镜像中安装dig而不出现上述错误?
【问题讨论】:
标签: docker