Skip to content

Instantly share code, notes, and snippets.

@herrernst
Created October 7, 2021 14:07
Show Gist options
  • Save herrernst/f89129cddb3f1af22150542b5948582f to your computer and use it in GitHub Desktop.
Save herrernst/f89129cddb3f1af22150542b5948582f to your computer and use it in GitHub Desktop.
build oci-image (for docker/podman) from rootfs
debootstrap bullseye ./debian-bullseye # download and create rootfs download
tar cf debian-bullseye.tar -C ./debian-bullseye/ . # tar
podman import debian-bullseye.tar debian-bullseye # import with name
podman run -it debian-bullseye /bin/bash # run bash in named container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment