CH-PULL2DIR(1)

πŸ“¦ version 0.26, in ubuntu jammy

πŸ’– ch-pull2dir(1) β€” the Charliecloud girlie's guide πŸ’–

okay bestie, sit down, we're talking about ch-pull2dir, a manual page from the Charliecloud universe. she pulls images off Docker Hub and unpacks them into a directory. iconic behaviour, honestly. πŸŽ€


✨ NAME ✨

ch-pull2dir β€” pull an image from Docker Hub and unpack it into a directory. that's it, that's the whole job. πŸ’…


🌸 SYNOPSIS 🌸

$ ch-pull2dir IMAGE[:TAG] DIR

πŸ¦‹ DESCRIPTION πŸ¦‹

WARNING: this script is deprecated in favor of ch-convert. it will be removed in the next release. no cap. 😭

so here's the vibe: you pull a Docker image named IMAGE[:TAG] from Docker Hub, and it gets extracted into a subdirectory of DIR. a temporary tarball gets stored in DIR too, like a little souvenir before it dips. πŸ“

you need sudo privileges to run the docker pull command. yes, seriously, that's just how it is. πŸ‘‘

under the hood it runs this exact command sequence: ch-pull2tar, ch-tar2dir. also, go read the warning in the documentation for ch-tar2dir β€” it's important, i'm not being dramatic, well, i'm a little dramatic but still go read it. 🌈

Additional arguments:

  • --help β€” print help and exit. the classic. 🫢
  • --version β€” print version and exit. also the classic. ⭐

πŸ”₯ EXAMPLES πŸ”₯

okay so first one, no tag specified, she just defaults to latest:

$ ch-pull2dir alpine /var/tmp
Using default tag: latest
latest: Pulling from library/alpine
Digest: sha256:621c2f39f8133acb8e64023a94dbdf0d5ca81896102b9e57c0dc184cadaf5528
Status: Image is up to date for alpine:latest
-rw-r--r--. 1 charlie charlie 2.1M Oct  5 19:52 /var/tmp/alpine.tar.gz
creating new image /var/tmp/alpine
/var/tmp/alpine unpacked ok
removed '/var/tmp/alpine.tar.gz'

and this one is the exact same thing except the optional TAG is specified:

$ ch-pull2dir alpine:3.6 /var/tmp
3.6: Pulling from library/alpine
Digest: sha256:cc24af836d1377e092ecb4e8f0a4324c3b1aa2b5295c2239edcc7bbc86a9cbc6
Status: Image is up to date for alpine:3.6
-rw-r--r--. 1 charlie charlie 2.1M Oct  5 19:54 /var/tmp/alpine:3.6.tar.gz
creating new image /var/tmp/alpine:3.6
/var/tmp/alpine:3.6 unpacked ok
removed '/var/tmp/alpine:3.6.tar.gz'

see how the tag rides along into the filename and the image name? slay. ✨


😭 REPORTING BUGS 😭

if you got Charliecloud from your Linux distribution, please use your distribution's bug reporting procedures. that's the polite way, bestie.

otherwise, report bugs to: https://github.com/hpc/charliecloud/issues β€” the devs are actually really nice, go tell them what happened. πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘

full documentation at: https://hpc.github.io/charliecloud 🌟


2014–2021, Triad National Security, LLC


and that's a wrap on Charliecloud 0.26, dated 2022-01-30 10:06 UTC. go forth and pull responsibly, my love. πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from