I created a docker container with this command:
docker run -p x.x.x.x:80:8080 <imageName> bash
where x.x.x.x was the IP address of the Docker server ruing CentOS version 7.
I then tried to the new Docker container. I got an "INFO" message with http: multiple response.WriteHeader calls.
It seemed to start, but when I tried to enter it with this command docker exec -it <containerID> bash
From this command I got red "ERRO" messages indicating that the Container <containerID> is not ruing.
I can create containers without the -p x.x.x.x:80:8080 if I use -i -t instead. These start fine. I can enter them normally.
How do I create a Docker container with a non-default IP address? I'm ruing CentOS 7 and Docker 1.9. Please be specific in the directions.
برچسب:
نویسنده: استخدام کار