Thank you for reading this article.
This is Mob Engineer (@mob-engineer).
When building a container using Podman, I encountered an error due to insufficient space in the default image storage directory. I found a workaround, so I'm posting it here for future reference.
Use case
- When temporarily saving images to a directory with a large capacity
work around
By executing it with the --root option, it will be saved to the option specified destination.
$ podman load -i <image path> --root <destination>
Points to note
If you load using the above command, the loaded image will not be displayed unless you add the --root option.
# Image information not displayed
$ podman images
# Image displayed
$ podman images --root
Warnig
This is just a workaround, so it should only be used temporarily (delete the image stored locally after pushing it to any repository). If you want to permanently change the storage folder, change the settings in "~/.config/containers/storage.conf".
Summary
Podman itself is easy to use, so I will continue to output any tips I find about podman.
Docs
podman-system-prune (Removing Unnecessary Resources)
podman-system-df (Checking Disk Usage)
podman (Main Page - Storage Settings)
Top comments (0)