Created
August 12, 2021 14:18
-
-
Save willthames/1368623256fd745695d02d3cc0d1b532 to your computer and use it in GitHub Desktop.
trying out buildah
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker create --name datactr -v /data willthames/buildah-test:v0.1 true | |
docker run -it --name alpine --volumes-from datactr alpine ls /data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install -y podman skopeo buildah unzip wget | |
echo 15000 | sudo tee /proc/sys/user/max_user_namespaces | |
# from here, no root access required | |
wget https://github.com/willthames/docker-debug-ts/archive/refs/heads/main.zip | |
mkdir test | |
cd test | |
unzip ../main.zip | |
cd docker-debug-ts-main | |
container=$(buildah from scratch) | |
buildah config --workingdir /data $container | |
buildah add $container . | |
image=$(buildah commit $container) | |
buildah tag $image willthames/buildah-test:v0.1 | |
buildah login | |
buildah push willthames/buildah-test:v0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment