Hi I’m asking if it’s possible to add aliases to a container that is already in a network?
For example when I run the following (to add
rockmelon-storage as a new alias)
docker network connect --alias 'rockmelon-storage' rockmelon-storage-default-f537679b_WebServer rockmelon-storage-default-f537679b-microservice-1
I get the following error
Error response from daemon: endpoint with name rockmelon-storage-default-f537679b-microservice-1 already exists in network rockmelon-storage-default-f537679b_WebServer
Looking online it seems the only solution is to disconnect the container from the network then re-add it with the existing aliases and the new one.
Is there a better way to approach this? Is this the recommended solution?