Kirby Zhou
Kirby Zhou

Reputation: 181

How can I run buildah inside rootless podman container?

I have tried to add fuse device to container, but it failed.

/] podman run -it --rm --device /dev/fuse --cap-add=SYS_PTRACE -v /search:/search  centos8-test

/]# buildah build-using-dockerfile /search/kirbyzhou/sgbuild_Dockerfile/centos8-base
kernel does not support overlay fs: 'overlay' is not supported over <unknown> at "/var/lib/containers/storage/overlay": backing file system is unsupported for this graph driver
ERRO exit status 125                            

It seems some special rights should be taken.

Upvotes: 1

Views: 1055

Answers (1)

rhatdan
rhatdan

Reputation: 452

There is an issue opened on this right now. I am not sure if this is possible. Seems to be fighting against the User Namespace.

Of course you can just run podman build or buildah natively.

Lets continue to discuss this in the issue.

Upvotes: -1

Related Questions