How to dynamically add port mapping to docker image?
黄舟
黄舟 2017-05-16 13:17:23
0
1
638

For example, I have newly installed redis and need to expose port 6379. I can’t re-run a new container with port 6379 mapped and then delete the old container. That would be too troublesome. Is there any support for docker? Friends who are more familiar with it, how do you operate it?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
黄舟

You can only set exposed ports in advance when running Docker containers. Generally speaking, services such as redis do not need to expose ports. Other containers only need to link.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template