Editing Docker-compose down
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | <code>[[docker-compose down]]</code> stops containers and '''removes containers''', networks, volumes, and images created by up | |
− | <code>[[docker-compose]] | ||
− | |||
− | + | https://docs.docker.com/compose/reference/down/ | |
− | |||
− | |||
− | |||
− | |||
− | + | * <code>docker-compose down</code> | |
− | |||
− | |||
(no output) | (no output) | ||
− | * <code>docker-compose down | + | * <code>docker-compose down --volumes</code> |
:: <code>-v, --volumes remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers.</code> | :: <code>-v, --volumes remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers.</code> | ||
Line 20: | Line 12: | ||
* <code>[[docker-compose down]] && [[docker-compose build]] --pull && [[docker-compose up]] -d</code> | * <code>[[docker-compose down]] && [[docker-compose build]] --pull && [[docker-compose up]] -d</code> | ||
− | |||
− | |||
− | |||
− | |||
== Examples == | == Examples == | ||
− | + | docker-compose -volumes down SERVICE_NAME | |
− | + | docker-compose version 1.23.2, build 1110ad01 | |
docker-compose down | docker-compose down | ||
Line 43: | Line 31: | ||
parent. Are you in the right directory? | parent. Are you in the right directory? | ||
− | Supported filenames: | + | Supported filenames: docker-compose.yml, docker-compose.yaml |
− | |||
− | |||
− | |||
== Related commands == | == Related commands == | ||
* {{docker-compose operations}} | * {{docker-compose operations}} | ||
− | |||
− | |||
== See also == | == See also == |
Advertising: