Open a-h opened 1 year ago
please fix this, otherwise buildah is not functional.
workaround is mentioned is working.
Got the same error using podman compose
. Found newidmap
in pkgs.shadow
but it fails:
podman compose -f docker-compose-dev.yaml up -d
ERRO[0000] running `/nix/store/9lnr32dcgidlzjhkqc6qlmz6pn2abilz-shadow-4.14.2/bin/newuidmap 452432 0 1000 1 1 100000 65536`: newuidmap: write to uid_map failed: Operation not permitted
Error: cannot set up namespace using "/nix/store/9lnr32dcgidlzjhkqc6qlmz6pn2abilz-shadow-4.14.2/bin/newuidmap": should have setuid or have filecaps setuid: exit status 1
Gathering related issues: https://github.com/containers/podman/discussions/19346 https://github.com/containers/podman/issues/8929
Podman's Troubleshooting Guide regarding missing newuidmap
for rootless containers:
https://github.com/containers/podman/blob/main/troubleshooting.md#9-newuidmap-missing-when-running-rootless-podman-commands
Describe the bug
I'm using Ubuntu 22.04.2 LTS with home-manager, configured with nixpkgs 23.05.
When I run
nix shell nixpkgs#buildah
and then runbuildah
, I get the following error.It's possible to workaround this by installing the
uidmap
in Ubuntu usingsudo apt-get install uidmap
.Steps To Reproduce
As above.
Expected behavior
I wouldn't expect to have to install the
uidmap
package on my base Ubuntu operating system, I'd expect it to be supported via the distribution.Notify maintainers
@Profpatsch
Metadata