Difference between revisions of "Docker-compose up"
Jump to navigation
Jump to search
↑ https://docs.docker.com/compose/reference/up/
(→Examples: * Using specific docker compose file: <code>docker-compose -f NAME_OF_YOUR_FILE up</code>) |
|||
Line 24: | Line 24: | ||
Creating volume "VOLUME_NAME" with default driver | Creating volume "VOLUME_NAME" with default driver | ||
Creating SERVICE_NAME ... done | Creating SERVICE_NAME ... done | ||
+ | |||
+ | * Using specific docker compose file: | ||
+ | <code>docker-compose -f NAME_OF_YOUR_FILE up</code> | ||
== Related commands == | == Related commands == |
Revision as of 12:02, 2 February 2020
https://docs.docker.com/compose/reference/up/
docker-compose up
ordocker-compose up SERVICE_NAME
[1] Builds, (re)creates, starts, and attaches to containers for a service.
docker-compose up -d
-d daemon
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.
docker-compose up, and docker-compose start will now start containers in parallel where possible.
Examples
docker-compose up
docker-compose up SERVICE_NAME
- Build containers but do not start them:
docker-compose up --no-start
- Upgrade a container:
docker-compose pull && docker-compose up -d
docker-compose up -d SERVICE_NAME Creating volume "VOLUME_NAME" with default driver Creating SERVICE_NAME ... done
- Using specific docker compose file:
docker-compose -f NAME_OF_YOUR_FILE up
Related commands
docker-compose
: [start
|stop
|restart
|pull
|up
|down
|ps
]docker-compose pull
See also
docker-compose
,docker-compose.yml
: [services
|volumes
|networks
|up
|down
|restart
|logs
|create
|changelog
|version
|secrets
|config
|-v
|-h
|exec], docker-compose pull
,Environment:
, Docker-compose.yml examples,.env
, release notes, expose:, docker-compose --env-file,services.deploy.resources
- Docker:
docker-compose
, Docker Desktop, Docker Scout, Docker Swarm, Docker Volumes, Docker images management, docker network,docker inspect
,docker volume inspect
,Dockerfile
, Docker Engine release notes,docker kill
,moby
, Docker-in-Docker,docker context
,buildx
,docker tag
,docker system prune
, Docker Hub,hub-tool, /etc/docker/daemon.json
,hostconfig.json
, dockerd, logs, Docker logging, Backup,docker service
,depends on
,--dns, --filter
,--mount
,docker login
,docker build
,apt remove docker.io
,.dockerignore
, docker context ls |docker-machine, .docker/
, PWD,$HOME/.docker/config.json
, Docker ID,--env-file, docker --help
Advertising: