Difference between revisions of "Docker restart"
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Restart]] one or more containers | |
+ | https://docs.docker.com/engine/reference/commandline/restart/ | ||
+ | * <code>docker restart CONTAINER_NAME_1</code> | ||
+ | * <code>docker restart CONTAINER_NAME_1 CONTAINER_NAME_2</code> | ||
* <code>docker restart $(docker ps -q)</code> | * <code>docker restart $(docker ps -q)</code> | ||
Line 7: | Line 10: | ||
* <code>[[docker-compose restart]]</code> | * <code>[[docker-compose restart]]</code> | ||
* <code>[[docker start]]</code> | * <code>[[docker start]]</code> | ||
+ | * <code>[[docker logs]]</code> | ||
+ | * <code>[[docker-compose logs]]</code> | ||
== See also == | == See also == |
Latest revision as of 06:15, 28 June 2020
Restart one or more containers https://docs.docker.com/engine/reference/commandline/restart/
docker restart CONTAINER_NAME_1
docker restart CONTAINER_NAME_1 CONTAINER_NAME_2
docker restart $(docker ps -q)
Related commands[edit]
See also[edit]
- 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: