nerdctl icon indicating copy to clipboard operation
nerdctl copied to clipboard

nerdctl built images, without a tag don't show up when running nerdctl images command

Open vsiravar opened this issue 1 year ago • 0 comments

Discussed in https://github.com/containerd/nerdctl/discussions/1392

Originally posted by vsiravar September 26, 2022 When I build an image using nerdctl build . without -t/--tag option, the image does not show up on running nerdctl images

Steps to reproduce this issue.

siravara@lima-default:/Users/siravara/vishwas-tests/temp$ nerdctl --version 
nerdctl version 0.23.0
siravara@lima-default:/Users/siravara/vishwas-tests/temp$ cat Dockerfile 
FROM public.ecr.aws/docker/library/debian:latest
RUN ["echo", "hello"]

siravara@lima-default:/Users/siravara/vishwas-tests/temp$ nerdctl build . [+] Building 1.3s (6/6) FINISHED
=> [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 108B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for public.ecr.aws/docker/library/debian:lat 1.2s => [1/2] FROM public.ecr.aws/docker/library/debian:latest@sha256:3e82b1a 0.0s => => resolve public.ecr.aws/docker/library/debian:latest@sha256:3e82b1a 0.0s => CACHED [2/2] RUN ["echo", "hello"] 0.0s => exporting to image 0.0s => => exporting layers 0.0s => => exporting manifest sha256:ff79eb83771bf6c7639023cb0b17d605e7bcd40d 0.0s => => exporting config sha256:7b70ed5aa3f2e07dd403a065230f6d328603427bfd 0.0s

siravara@lima-default:/Users/siravara/vishwas-tests/temp$ nerdctl images 
REPOSITORY    TAG    IMAGE ID    CREATED    PLATFORM    SIZE    BLOB SIZE

Is this the intended behaviour, if so If you build an image, regardless of the output type, when would you expect it to not be included in nerdctl images?

vsiravar avatar Sep 27 '22 23:09 vsiravar