Docker Community Forums

Share and learn in the Docker community.

Why does Kitematic change the port number for running containers?

(Dnovogrodsky) #1

I am using Kitematic and Docker in a development environment. Yesterday I installed a container for Postgre. The mac ip and port for this container was

I shut down my system for the day.

Today, when I restarted my system, started Kitematic, and started the containner The ip and port was

Why did it change?

(Jmorgan) #2

Thanks for posting.

Interesting, it’s possible Kitematic assigned it a random port upon restarting it. Sorry about that. Feel free to file an issue at

(Bchanan) #3

ASFIK: port are randomly selected unless you run flannel
Try the following:

  • start container and check port
  • stop container
  • start container and check port - notice its not the same as its randomly selected