I tried to remove a costume network that is connected to a container. As you can imagine I didn’t, because of the container. I stopped it and then removed the network. When I tried to restart the container, I didn’t because the container is not connected to any network. Then tried to connect to different networks but I can’t. So, is there any way to restart that container again?
2
Answers
After deleting the network the id of the deleted network is given in the output. We can recreate the same network using that id:
after the recreation connect that network to the container:
Maybe this works:
https://docs.docker.com/engine/reference/commandline/network_connect/