maybe a simple question, but I didn’t found the answer yet.
When I run docker image ls command the column TAG is always <none> is there a reason why ?
root@server :~# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
portainer/agent <none> 9f786420f676 36 hours ago 171MB
traefik <none> 4113453efcb3 7 days ago 226MB
rabbitmq <none> d8584cd37af1 9 months ago 251MB
There is always a tag when you pull an image, but tags can disappear sometimes when another image needs the same version tag. For example when you run docker pull again and the same version tag points to a new image. I think, the repository name would disappear as well, but I admit I could tell you only after testing. Unfortunately I noted something strange while testing and I have the same image twice in thedocke rimage ls output, so somethingis happening with the image listing.
We usually need the following information to understand the issue:
What platform are you using? Windows, Linux or macOS? Which version of the operating systems? In case of Linux, which distribution?
How did you install Docker? Sharing the platform almost answers it, but only almost. Direct links to the followed guide can be useful.
On debian based Linux, the following commands can give us some idea and recognize incorrectly installed Docker:
docker info
docker version
Review the output before sharing and remove confidential data if any appears (public IP for example)
Thank you. That example helps a lot to try to reproduce the issue. In my case, I could not reproduce the missing version tag, but another strange thing happened this time. It loks like if I let Swarm pull the image, I see the latest tag, but I cannot use it when I want to delete the image. If I use the version tag as “traefik” or “traefik:latest”, the docker cli says it doesn’t exist. I could only delete the image by image ID. If I use “docker pull” directly, I can also delete the image.
I saw this in Docker Desktop on macOS, but when I try Docker CE in a Linux VM, I see the same <none>. So it is a Swarm behavior, but since I’m not using Swarm, I’m not sure if it is normal. What do you think @bluepuma77
So it seems that you see the right value in the TAG column and I should see the same. I will try to figure out which one is the bug, but I feel the tag should always be visible if we used the tag to pull the image even if it was in a compose file (swarm stack file).
update:
I just disabled the “containerd” image store in Docker Desktop and now I see the same <none> in the output.