I’m new to Docker, I get into it in order to give a try to Zenko so first I followed a few Docker tutorials and I come to you with this beginner question:
What is the difference between docker pull “imagename” and docker image pull “imagename”?
Great question. The two commands are equivalent. The recent, preferred version is
$ docker image pull some_image
primarily because of the larger range of sub-commands available from the “docker image” command, all related to operating on images. For example, the following are just a few of the sub-commands available with “docker image”
$ docker image build
$ docker image history
$ docker image import
$ docker image inspect
$ docker image ls
$ docker image rm
$ docker image tag
The old form, “docker pull”, is retained for backwards compatibility, as are many other, related commands.