最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Podman - how to change .local directory location - Stack Overflow

programmeradmin1浏览0评论

I need to change location of .local, containing data for containers as due to corp policy, I can't have anything "big" in a home directory.

So I did

export CONTAINERS_STORAGE_CONF=/home/my_tech_user/.config/containers/storage.conf

and inside of this storage.conf is

...
[storage]

# Default Storage Driver, Must be set for proper operation.
driver = "overlay"

runroot = "/mnt/data/app_myapp/podman"
graphroot = "/mnt/data/app_myapp/podman"
...

When I do

podman load -i /mnt/data/podman_images/openjdk_image.tar

Podman ignores the config and creates a .local folder inside /home/my_tech_user/ home, instead of /mnt/data/app_myapp/podman.

How can I force podman to use my specified location for all it's content?

发布评论

评论列表(0)

  1. 暂无评论