Editing Docker-compose up
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]] up</code><ref>https://docs.docker.com/compose/reference/up/</ref> Builds, (re)creates, starts, and attaches to containers for a service. | |
− | + | :: <code>[[docker-compose up]] -d</code> | |
− | + | :::<code>-d daemon</code> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * <code>[[docker-compose | ||
− | <ref>https://docs.docker.com/compose/reference/up/</ref> Builds, (re)creates, starts, and attaches to containers for a service. | ||
− | |||
− | |||
https://docs.docker.com/compose/reference/up/ | https://docs.docker.com/compose/reference/up/ | ||
If there are existing containers for a service, and the service’s configuration or image was changed after the container’s creation, docker-compose up picks up the changes by stopping and recreating the containers (preserving mounted volumes). To prevent Compose from picking up changes, use the --no-recreate flag. | If there are existing containers for a service, and the service’s configuration or image was changed after the container’s creation, docker-compose up picks up the changes by stopping and recreating the containers (preserving mounted volumes). To prevent Compose from picking up changes, use the --no-recreate flag. | ||
− | |||
− | |||
+ | == Examples == | ||
* <code>docker-compose up</code> | * <code>docker-compose up</code> | ||
− | * | + | * <code>docker-compose up --no-start</code> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* Upgrade a container: | * Upgrade a container: | ||
− | <code>[[docker | + | <code>[[docker compose pull]] && docker-compose up -d</code> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Related commands == | == Related commands == | ||
− | |||
− | |||
* <code>[[docker-compose pull]]</code> | * <code>[[docker-compose pull]]</code> | ||
− | + | * <code>[[docker-compose down]]</code> | |
− | * <code>[[docker-compose down]] | + | * <code>[[docker-compose start]]</code> |
− | * <code>[[docker | ||
− | |||
− | |||
== See also == | == See also == | ||
− | |||
* {{docker-compose}} | * {{docker-compose}} | ||
+ | * {{Docker}} | ||
[[Category:Docker]] | [[Category:Docker]] |
Advertising: