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?
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.