I'm trying to build an image from a Dockerfile in order to launch multiple containers from it. In the Dockerfile I copy my /etc/apt/source/sources.list and then execute several command (apt update, and apt install) using the RUN keyword.
When I execute the docker build command, the execution starts correctly and I see intermediary containers being created and deleted. But at some point I get an error telling me "Address already in use".
When I inspect the last intermediary container created, in the state section I get:
Status: created
...
Pid : 0
ExitCode: 128
Error: Adress already in use
EDIT:
The Dockerfile looks like this:
FROM i386/debian AS node
COPY sources.list /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y openssh-server
RUN apt-get install -y vim gdb valdgrind
RUN apt-get-install -y python
...
The last output I get from the build command is:
Step 4/37 : RUN apt-get update
----> Running in ce7722ffeeb6
Address already in use
END EDIT
I don't understand what this error is about. Does anybody have an idea?
I'm running on Debian 9 with Docker 17.12.0.
docker buildoutput, which should container the last executed Dockerfile statement, which causes the error - Murmelsources.list? Does the problem persist if you remove theCOPY sources.list /etc/apt/sources.listline? Does your problem persist if you switch fromFROM i386/debianto another base image, sayFROM ubuntu? - Murmel