nlewo / nix2container

An archive-less dockerTools.buildImage implementation
Apache License 2.0
501 stars 45 forks source link

clean up old mess #106

Open adminy opened 8 months ago

adminy commented 8 months ago
root in ~/repos/project on gh-deploy ● λ docker images
REPOSITORY                    TAG       IMAGE ID       CREATED   SIZE
some-long.siten.com/project   <none>    76f5311ecc57   N/A       1.02GB
<none>                        <none>    0afff1091d03   N/A       814MB
some-long.siten.com/project   <none>    d7587d99bfaf   N/A       814MB
some-long.siten.com/project   latest    430abc5ddefd   N/A       1.02GB
<none>                        <none>    3aa9392a5621   N/A       904MB
<none>                        <none>    4b45640a99ba   N/A       814MB
some-long.siten.com/project   <none>    76b476cf8d2c   N/A       897MB
<none>                        <none>    c54e47bfadad   N/A       897MB
some-long.siten.com/project   <none>    0f6a62572f4f   N/A       904MB

Every time I build, it just leaves untagged garbage. I'd really appreciate it if via a flag or some config option there won't be anymore dangling images.

the command I'm running is: nix run .#project.copyToDockerDaemon

nlewo commented 8 months ago

@adminy the copyToDockerDeamon is supposed to set the tag of the image. If you don't specify image.tag, the image outpath hash is used as a tag. See

adminy commented 8 months ago

but I'm specifying image tag to be latest.

adminy commented 6 months ago

any update on this? were you able to reproduce?