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
stop
andrm
? In your case:docker-compose stop nomeDoServico
and thendocker-compose rm nomeDoServico
. Thenetwork
can only be removed withdown
even, but maybe you can do this after using thestop
(I suppose).– Dherik
the
docker-compose rm -s -f nomeDoServico
worked out, thanks @Dherik– David