RHEL9 如何快速开启rootless Podman

@vrqq  December 11, 2022

假设现在齐全了

# 停止以root身份启动的podman
sudo systemctl stop podman.socket
sudo systemctl stop podman.service

# 以当前身份重新启动podman
systemctl --user daemon-reload
systemctl --user enable --now podman.socket
systemctl --user enable --now podman.service
systemctl start podman.socket
systemctl start podman.socket

# 运行podman检查环境是否已经变了
podman system info

# 我当前的uid是1000 此时可以看到默认的podman.sock已经被创建,且可以访问了
# '$XDG_RUNTIME_DIR/podman/podman.sock'
ls -l /run/user/1000/podman/podman.sock

Reference


添加新评论