我想用dockerfile创建jenkins图像。 Docker正在运行(使用hello-world映像尝试它)。使用docker创建jenkins图像
我Dockerfile:
FROM jenkins:latest
USER root
RUN apt-get update && apt-get install -y build-essentials
USER jenkins
我想用这个命令
sudo docker build -t "jenkins_master" .
但我总是得到这个错误,以建立形象:
E: Unable to locate package build-essentials
The command '/bin/sh -c apt-get install build-essentials' returned a non-zero code: 100
我试过:
须藤服务泊坞窗重启
须藤RM的/ var/lib中/公寓/列表/ *室颤
但没有任何工程。我使用Ubuntu 16.04 LTS
我改变了它(见上面编辑的条目),但我得到了相同的错误信息 – user3741086
你可以尝试用sudo运行这两个命令吗? – Colwin
that does not work: /bin/sh:1:sudo:not found – user3741086