Difference between revisions of "Docker update"
Jump to navigation
Jump to search
↑ https://docs.docker.com/engine/reference/commandline/update/
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{lc}} |
− | + | <code>[[docker update]]</code> update configuration of one or more containers. [https://docs.docker.com/engine/reference/commandline/update/ ref] | |
− | :<code>[[docker | + | :<code>[[docker]] update --restart=always CONTAINER_NAME</code> <ref>https://docs.docker.com/engine/reference/commandline/update/</ref> |
+ | :<code>[[docker]] update --restart=no CONTAINER_NAME</code> | ||
+ | |||
+ | |||
+ | Modify all containers to not start automatically: | ||
+ | docker update --restart=no $([[docker container ls]] -aq) | ||
== Related commands == | == Related commands == | ||
* <code>[[docker pull]]</code> | * <code>[[docker pull]]</code> | ||
− | * Update all your local images: <code>docker images |grep -v REPOSITORY|awk '{print $1}'|xargs -L1 docker pull</code> (See also: <code>[[docker-compose pull]]</code>) | + | * <code>[[docker start]]</code> |
+ | * <code>[[docker stop]]</code> | ||
+ | * Update all your local images: | ||
+ | <code>docker images |grep -v REPOSITORY|awk '{print $1}'|xargs -L1 docker pull</code> (See also: <code>[[docker-compose pull]]</code>) | ||
== Activities == | == Activities == | ||
Line 14: | Line 22: | ||
== See also == | == See also == | ||
+ | * {{docker update}} | ||
* {{docker images management}} | * {{docker images management}} | ||
* {{docker}} | * {{docker}} | ||
[[Category:Docker]] | [[Category:Docker]] |
Latest revision as of 17:29, 4 May 2023
docker update
update configuration of one or more containers. ref
Modify all containers to not start automatically:
docker update --restart=no $(docker container ls -aq)
Related commands[edit]
docker pull
docker start
docker stop
- Update all your local images:
docker images |grep -v REPOSITORY|awk '{print $1}'|xargs -L1 docker pull
(See also:docker-compose pull
)
Activities[edit]
See also[edit]
docker update [ --cpus ]
- Docker images management:
docker images
,docker image
,docker image inspect
- 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: