Clément Lassieur <clem...@lassieur.org> writes: > Ludovic Courtès <l...@gnu.org> writes: > >> Hello Guix! Hello 2.2 Guilers! >> >> l...@gnu.org (Ludovic Courtès) skribis: >> >>> I’d like to move support for Docker (currently in ‘guix archive’) to >>> this new command because I think it’s more appropriate: ‘guix archive’ >>> is supposed to be rather low-level so it would not create a profile, for >>> instance. >> >> As of right now, ‘guix pack’ can create Docker image (‘guix archive’ >> can no longer do that): >> >> guix pack guile-next -S /opt/guile-2.2.0= -f docker >> >> I’d be grateful if someone could check with Docker that I didn’t break >> anything though. Any takers? :-) > > I just tested it (although I'm probably not the first) and it works > (with "docker load"). Thanks!
I also tested it successfully: image=$(guix pack -f docker -S /opt/gnu/bin=bin r) docker load < $image id=$(docker images -q profile | tail -n 1) docker run --rm --tmpfs /tmp:rw,size=787448k,mode=1777 -ti $id /opt/gnu/bin/R This creates an image for R, loads it, starts (and eventually removes) a container in which R runs. For people who find this cumbersome: use containers with Guix instead. Here’s how: guix environment --container --ad-hoc r -- R -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net