[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guix pack -f docker and name ?

From: Ludovic Courtès
Subject: Re: guix pack -f docker and name ?
Date: Tue, 21 May 2019 10:52:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)


zimoun <address@hidden> skribis:

> On Mon, 20 May 2019 at 17:42, Ludovic Courtès <address@hidden> wrote:


>> I think ‘guix pack’ should have a ‘-r/--root’ option like ‘guix build’
>> so you can do:
>>   guix pack -r my-image -f docker foo bar baz
>> WDYT?
> Yes, it better fits what I am more or less doing by hand.
> Nice `guix pack` owns this option.

Cool.  Note that the advantage is the GC root, but if it’s just about
creating a symlink, you can also do:

  ln -s $(guix pack -f docker whatever) my-symlink

>> > 2.
>> > Once loaded with `docker load < /gnu/store/<hash>-docker-pack.tar`
>> > then `docker image ls` list all the images. The REPOSITORY and TAG are
>> > not super helpful. :-)
>> > It is always: profile and <hash>.
>> >
>> > Maybe REPOSITORY should be guix and TAG should be <short-hash>-<name>.
>> > Because when one has more than 2 images, after holidays it is not
>> > possible to remember or they needs to track in a separate file what it
>> > is.
>> I agree, we can do better here.  :-)
>> We could allow for user-provided names, and/or, when ‘--save-provenance’
>> is used, we could show the commit ID or something.
>> Ideas?
> I was proposing:
>  guix pack -f docker -r foo
> generates the file:
> /gnu/store/<long-hash>-docker-pack.tar
> where the symlink foo to this file and the field REPOSITORY should be
> guix and the field TAG should `foo-<short-hash>` where <short-hash>`
> is let say 6 characters.


> I do not know if it is the right way. What do people using Docker think ?

Yup, I’m curious what people think best practice is!  Because I don’t
really qualify as a “Docker user” myself.  :-)

Thank you,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]