macOS上podman init提示: permission denied
问题描述
在macOS上使用podman init命令时,提示如下错误:
shell
$ podman machine init
Error: mkdir /Users/panjing/.local/share: permission denied
$ podman machine init
Error: mkdir /Users/panjing/.local/share: permission denied
这个是因为新版macOS对用户文件夹进行了限制,需要给普通用户授权
解决方法
shell
sudo chmod -R 777 .local
sudo chmod -R 777 .local
再次运行podman的命令即可成功。
shell
podman machine init
Downloading VM image: fedora-coreos-39.20240210.2.0-qemu.aarch64.qcow2.xz: done
Extracting compressed file: podman-machine-default_fedora-coreos-39.20240210.2.0-qemu.aarch6…
Image resized.
Machine init complete
To start your machine run:
podman machine start
podman machine init
Downloading VM image: fedora-coreos-39.20240210.2.0-qemu.aarch64.qcow2.xz: done
Extracting compressed file: podman-machine-default_fedora-coreos-39.20240210.2.0-qemu.aarch6…
Image resized.
Machine init complete
To start your machine run:
podman machine start