From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: guix pack -f docker and name ? Date: Mon, 20 May 2019 17:42:10 +0200 Message-ID: <877ealqgj1.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:56806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSkQW-0005Ab-Py for guix-devel@gnu.org; Mon, 20 May 2019 11:42:13 -0400 In-Reply-To: (zimoun's message of "Thu, 16 May 2019 20:47:17 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: zimoun Cc: Guix Devel Hi Simon, zimoun skribis: > 1. > The name of the tar is given at the end of the command `guix pack`. If > you forget to track it, then you need to re-run `guix pack` (obviously > with the very same parameters) to get it again. > It is not super user-friendly. :-) > > What to think to add an option to name a symbolic link to this file in > the store ? > > Currently, I am doing that by hand: > guix pack -f docker ... > # copy the name /gnu/store/-docker-pack.tar > ln -s paste my-name > > In general, I choose my-name as - with > something to quickly remember what it is and the to be sure of > what it is. I think =E2=80=98guix pack=E2=80=99 should have a =E2=80=98-r/--root=E2=80= =99 option like =E2=80=98guix build=E2=80=99 so you can do: guix pack -r my-image -f docker foo bar baz WDYT? > 2. > Once loaded with `docker load < /gnu/store/-docker-pack.tar` > then `docker image ls` list all the images. The REPOSITORY and TAG are > not super helpful. :-) > It is always: profile and . > > Maybe REPOSITORY should be guix and TAG should be -. > 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 =E2=80=98--save-proven= ance=E2=80=99 is used, we could show the commit ID or something. Ideas? You=E2=80=99ve already proposed other improvements to =E2=80=98guix pack -f= =E2=80=99, and I think you should email a concise reminder to each specific improvement to bug-guix so we keep track of them. I may be able to work on them soonish. Thank you! Ludo=E2=80=99.