Difference between revisions of "Buildah"
From John Freier
Line 3: | Line 3: | ||
List all images | List all images | ||
buildah images | buildah images | ||
+ | |||
+ | |||
+ | To run buildah using docker | ||
+ | docker run -it \ | ||
+ | --security-opt seccomp=unconfined \ | ||
+ | --security-opt apparmor=unconfined \ | ||
+ | --entrypoint "/bin/bash" \ | ||
+ | quay.io/buildah/stable | ||
+ | |||
+ | You need to have the following flags | ||
+ | --security-opt seccomp=unconfined | ||
+ | --security-opt apparmor=unconfined | ||
+ | |||
+ | seccomp - Docker restricts using unshare system call inside a containers. | ||
+ | apparmor - This flag is required. |
Revision as of 14:33, 4 April 2022
This tool is used to build images.
List all images
buildah images
To run buildah using docker
docker run -it \ --security-opt seccomp=unconfined \ --security-opt apparmor=unconfined \ --entrypoint "/bin/bash" \ quay.io/buildah/stable
You need to have the following flags
--security-opt seccomp=unconfined --security-opt apparmor=unconfined
seccomp - Docker restricts using unshare system call inside a containers. apparmor - This flag is required.