I want to create a jenkins image with a dockerfile. Docker is running (tried it with the hello-world image).
My Dockerfile:
FROM jenkins:latest USER root RUN apt-get update && apt-get install -y build-essentials USER jenkins I want to build an image with this command
sudo docker build -t "jenkins_master" . But i always get this error:
E: Unable to locate package build-essentials The command '/bin/sh -c apt-get install build-essentials' returned a non-zero code: 100 i've tried:
sudo service docker restart
sudo rm /var/lib/apt/lists/* -vf
But nothing works. I am using Ubuntu 16.04 LTS