0
I have a file Docker-Compose.yml with various image settings. To upload all I can use the docker-compose up -d and stop docker-compose down, if I only want to upload a configured service docker-compose up -d nomeDoServico.
Now I need to stop only one service configured, and using the docker-compose down nomeDoServico does not work. I did not want to stop the container, removing it and removing the Networks manually.
I need to remove a container, and your networks and start it again, how to do it?
Tried to use command
stopandrm? In your case:docker-compose stop nomeDoServicoand thendocker-compose rm nomeDoServico. Thenetworkcan only be removed withdowneven, but maybe you can do this after using thestop(I suppose).– Dherik
the
docker-compose rm -s -f nomeDoServicoworked out, thanks @Dherik– David