Skip to content
kamack38 edited this page Sep 21, 2025 · 4 revisions

Docker

Useful commands

Remove any stopped containers, volumes and all unused images

docker system prune -a

Remove all unused local volumes. Unused local volumes are those which are not referenced by any containers

docker volume prune -f

Backup

Create a new image from a container's changes

docker commit <container>

Save one or more images to a tar archive

docker save -o backup.tar <image>

Load an image from a tar archive

docker load -i backup.tar

Clone this wiki locally