Skip to content

Instantly share code, notes, and snippets.

@willthames
Created August 12, 2021 14:18
Show Gist options
  • Save willthames/1368623256fd745695d02d3cc0d1b532 to your computer and use it in GitHub Desktop.
Save willthames/1368623256fd745695d02d3cc0d1b532 to your computer and use it in GitHub Desktop.
trying out buildah
docker create --name datactr -v /data willthames/buildah-test:v0.1 true
docker run -it --name alpine --volumes-from datactr alpine ls /data
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