...
Code Block |
---|
docker image prune |
Remove all images not currently in-use by an existing container:
Code Block |
---|
docker image prune -a |
Update a docker image
Code Block |
---|
docker pull <image> |
Info |
---|
Where <image> is the docker image, e.g. "prom/prometheus". |
Update all docker images at once
Code Block |
---|
docker images |grep -v REPOSITORY|awk '{print $1}'|xargs -L1 docker pull |
Manage containers
View container logs
...
References
- https://docs.docker.com/
- https://www.googlinux.com/update-all-docker-images/index.html
- https://stackoverflow.com/questions/22049212/copying-files-from-docker-container-to-host
...