help-guix
[Top][All Lists]
Advanced

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

Re: Guix Docker image inflation


From: Stephen Scheck
Subject: Re: Guix Docker image inflation
Date: Fri, 29 May 2020 13:36:47 -0400

On Fri, May 29, 2020 at 1:12 PM zimoun <zimon.toutoune@gmail.com> wrote:

> Dear Stephen,
>
> I am not sure to follow all the Docker dance.  Well, if I understand
> correctly, you did:
>
>     guix package --delete-generations
>     guix gc
>
> which remove all except the current profile, i.e., ~/.guix-profile.
> However, there is another profile '~/.config/guix/current' which is
> the profile used when guix pull.  Therefore, you have to clean the
> generations here too:
>
>    guix pull --delete-generations
>    guix gc
>
> Does it reduce the size?
>

root@localhost /# du -hs /gnu/store
4.3G /gnu/store

### only one generation ###

root@localhost /# guix pull --list-generations
Generation 12 May 28 2020 20:45:30 (current)
  guix a5374cd
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: a5374cde918cfeae5c16b43b9f2dd2b24bc3564d

root@localhost /# guix pull --delete-generations

### still only one generation ###

root@localhost /# guix pull --list-generations
Generation 12 May 28 2020 20:45:30 (current)
  guix a5374cd
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: a5374cde918cfeae5c16b43b9f2dd2b24bc3564d

root@localhost /# guix gc
finding garbage collector roots...
deleting garbage...
[0 MiB] deleting '/gnu/store/slwkzcmg6r1lr9a16x3krd2ax384p8wr-guix-system'
[0 MiB] deleting '/gnu/store/dzifisbdk1gwy2fw2hwzgvdnjak22awl-guix-extra'
[0 MiB] deleting '/gnu/store/rqz825cwaf4866d2aljwkk9qq0g7rmzm-module-import'
### Many more store files (all 0 MiB) elided...
deleting `/gnu/store/trash'
deleting unused links...
note: currently hard linking saves 1181.36 MiB
guix gc: freed 0 MiBs

### no space recovered ###

root@localhost /# du -hs /gnu/store
4.3G /gnu/store


reply via email to

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