After starting docker container with standart command ...
docker run -p 123-125:123:125 -it <container_name> "bin/bash"
... and exiting it with CTRL-P + CTRL-Q, I noticed that suddenly I see 2 blocks in port column of docker ps output:
100:102/tcp, 0.0.0.0:123-125:123:125/tcp
I was never setting 100:102 ports for my container.
I cannot get 2 things:
- what is the difference between these 2 notations: 100:102/tcp and 0.0.0.0:123-125:123:125/tcp in docker ps output?
- why I have additional 100:102/tcp output in docker ps if my -p parameter was only listing 123-125:123:125/tcp?
没有评论:
发表评论