Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker image exists, but "docker run" doesn't find it

Tags:

docker

Here is the link of docker hub from where I am pulling the image "https://hub.docker.com/r/zcgzcgzcg/squadv2/tags"

My main motive is to run the environment on my machine locally.

ouput

like image 690
ronaldo_jr Avatar asked Jan 25 '26 12:01

ronaldo_jr


2 Answers

If you do not specify which version of zcgzcgzcg/squadv2 you want, Docker will, per default use the tag latest.

But you don't have any image zcgzcgzcg/squadv2:latest.
You have one tagged 4.0, though, so:

docker run zcgzcgzcg/squadv2:4.0

Is what you are looking for.

This is implicitly described in the documentation where they point at the fact that:

$ docker run --name test -it debian

This example runs a container named test using the debian:latest image.

Source: https://docs.docker.com/engine/reference/commandline/run/#assign-name-and-allocate-pseudo-tty---name--it

But it is also explicitly descriped in the docker pull page:

If no tag is provided, Docker Engine uses the :latest tag as a default.

Source: https://docs.docker.com/engine/reference/commandline/pull/#pull-an-image-from-docker-hub

like image 186
β.εηοιτ.βε Avatar answered Jan 27 '26 02:01

β.εηοιτ.βε


The problem is you are not specifying the tag in your docker run command. You have pulled 4.0, as you can see in the docker images output - but when you don't specify the tag, it will default to latest - which you don't have. So, try this:

docker run zcgzcgzcg/squadv2:4.0

like image 43
kenny_k Avatar answered Jan 27 '26 02:01

kenny_k



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!