📝
[メモ]Podmanが "newgidmap: Could not set caps" エラーになった
現象
- sudo podman version すると動く
Client: Podman Engine
Version: 4.0.1
API Version: 4.0.1
Go Version: go1.17.8
Git Commit: c8b9a2e3ec3630e9172499e15205c11b823c8107
Built: Sun Mar 13 20:44:23 2022
OS/Arch: linux/amd64
- podman version だと
ERRO[0000] error running `/sbin/newgidmap 538795 0 1000 1 1 200000 4096`: newgidmap: Could not set caps
Error: cannot setup namespace using "/sbin/newgidmap": exit status 1
- /etc/subuid /etc/subgid 設定済み
username::165536:4096
解決方法
$ sudo chmod 4755 /sbin/newgidmap
$ sudo chmod 4755 /sbin/newuidmap
Discussion