Home > other >  Docker port mapping problem
Docker port mapping problem

Time:09-16


Help docker
Clearly has a port mapping, only the first one can use, other are not,
Behind the creation of the first statement and three different (formerly to have forgotten), to create such statement is wrong?
Docker run - h="nginxVol1" - it - name=nginxVo1 -p 127.0.0.1:5000-80 - v WFQ - nginx - v1:/usr/share/nginx/HTML nginx bin/bash

CodePudding user response:

1, didn't open the nginx start the container service nginx - g 'daemon off; '
2 mapping is a problem with the IP, 0.0.0.0 and 127.0.0.1 is not the same

CodePudding user response:

1, port takes up problems
2, nginx some mirror is the need to enter the open service
3, so many ports, do load, you can put the image of the ports are mapped to the native port 80


Personal view
  • Related