Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

  1. https://docs.docker.com/
  2. https://www.googlinux.com/update-all-docker-images/index.html
  3. https://stackoverflow.com/questions/22049212/copying-files-from-docker-container-to-host

...