Why does Kitematic change the port number for running containers?

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 192.168.99.100:5432.

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 192.168.99.100:32771.

Why did it change?

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 https://github.com/kitematic/kitematic/issues/new

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