我这样写我的Dokerfile:
system@vmdebian:~$ more Dockerfile
FROM debian8
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/web/log/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid
ENV APACHE_RUN_DIR /var/run/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get -y -q upgrade && apt-get -y -q install apache2
EXPOSE 80 443
CMD ["apache2ctl","-D","FOREGROUND"]
当我运行此命令时:
docker image build -t dub/superapache Dockefile
我收到此错误消息:
Sending build context to Docker daemon 20.99kB
Step 1/10 : FROM debian8
pull access denied for debian8, repository does not exist or may require 'docker login'
Debian Jessie在Docker中的映像名称是什么?
答案 0 :(得分:1)
检查Debian Docker Hub,Debian 8是“ jessie” 。
您可以使用docker pull debian:jessie
或docker pull debian:8
拉标签。
将您的FROM
行更改为:
FROM debian:jessie
如果您确实想要Debian 6 “ squeeze” ,则必须寻找非官方资源或自行构建。