For example, when I newly installed redis, I need to expose port 6379. I can’t rerun a new container mapped to port 6379, and then delete the old container. That’s too much trouble, isn’t it? Are there any students familiar with docker and how do you operate?
Docker running containers can only set exposed ports in advance. Generally speaking, redis services do not need exposed ports, and other containers only need link