docker network disconnect app-backend myAwesomeApp-1
This command detaches the
myAwesomeApp-1 container from the
app-backend network. The container will no longer be able to communicate with other containers on the network it has been disconnected from, nor use the embedded DNS resolver to look up other containers on the network it has been detached from.