Ricardo Wurmus <rek...@elephly.net> skribis:

> Clément Lassieur <clem...@lassieur.org> writes:
>
>> Ludovic Courtès <l...@gnu.org> writes:

[...]

>>> 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.

Awesome, thank you both for testing!

> For people who find this cumbersome: use containers with Guix instead.
> Here’s how:
>
>     guix environment --container --ad-hoc r -- R

Indeed!  :-)

Ludo’.

Reply via email to