Created
August 12, 2022 20:13
-
-
Save nponeccop/ee4664593ebd55c1ed5251ac311dccfe to your computer and use it in GitHub Desktop.
podman tarball trick
This file contains hidden or 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
#!/bin/bash | |
set -ex -o pipefail | |
podman build . -t small-tar | |
podman rm small-tar || true | |
podman create --name small-tar small-tar /bin/dummycmd | |
podman cp small-tar:/rootfs.tar rootfs.tar | |
podman rm small-tar || true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment