Timeline for docker-compose up/down just one container
Current License: CC BY-SA 4.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 3, 2023 at 20:58 | comment | added | Seb |
If you don't want to enter the confirmation for ? Going to remove <service_name> , just add -f
|
|
Apr 27, 2023 at 18:08 | comment | added | emeraldhieu | Hm... Not sure why it doesn't work for me. The console says "No stopped containers". Docker Compose version v2.12.0. | |
Mar 22, 2023 at 17:48 | comment | added | MauricioID |
I was looking for this solution exactly. Only thing is I had to execute docker-compose rm -s -v yourService twice. First time it stops service's container. Second time it asks ? Going to remove name-service-1 which I responded yes and container is removed along with unnamed volumes, being able to apply fresh start recreating unnamed volumes again with docker-compose up -d yourService . This is without affecting other services being stoped, which docker-compose down does. Thanks!
|
|
Sep 28, 2022 at 21:39 | comment | added | CompEng88 | This doesn't work with named volumes. rm -v only removes anonymous volumes. | |
May 23, 2021 at 22:30 | comment | added | Jordan Morris | @eco and importantly, docker-compose down applies to all the containers, not just one | |
Feb 7, 2021 at 6:05 | comment | added | eco | This should be the answer. docker-compose down only does all or nothing...this points to the service and stops it. | |
Dec 27, 2020 at 16:19 | history | edited | laurent | CC BY-SA 4.0 |
Removed the unnecessary and potentially dangerous --force flag
|
Aug 7, 2020 at 12:47 | comment | added | Markus-Hermann | Jordan Morris, according to the manual -v disposes of anonymous volumes only when used with 'rm'. When used with 'down' it is stronger, also disposing of named volumes. The former is pretty safe. | |
Jun 12, 2020 at 13:48 | history | edited | CommunityBot |
Commonmark migration
|
|
S Jul 17, 2019 at 19:50 | history | suggested | Patrick M | CC BY-SA 4.0 |
docker compose doc link and explanation of flags
|
Jul 17, 2019 at 16:42 | review | Suggested edits | |||
S Jul 17, 2019 at 19:50 | |||||
May 22, 2019 at 13:23 | comment | added | Semo | Could you please explain the flags, what they would do? | |
Sep 5, 2018 at 12:02 | comment | added | Jordan Morris | I think disposes the disk, btw | |
Sep 15, 2017 at 10:33 | history | answered | Jordan Morris | CC BY-SA 3.0 |