Advertisement
nponeccop

podman tarball trick

Aug 12th, 2022
1,142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.22 KB | None | 0 0
  1. #!/bin/bash
  2. set -ex -o pipefail
  3. podman build . -t small-tar
  4. podman rm small-tar || true
  5. podman create --name small-tar small-tar /bin/dummycmd
  6. podman cp small-tar:/rootfs.tar rootfs.tar
  7. podman rm small-tar || true
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement