Why is docker pull hello-world run before tagging hello-world?
docker pull hello-world
hello-world
It ensures the source image exists locally for the tag operation.
It lists all locally tagged images.
It uploads the custom tag to a registry.
It creates and starts a container named hello-world.