There seems to be a functional bug in here:
When we are tagging an existing docker image we use: docker tag 1fe3d8f47868 kjackal/mynginx:public
But while pushing that image we use: docker push kjackal/mynginx
So now according to docker basics if we do not provide any tag to the image it will append latest as a tag so this command will through an error.
to remove this issue we can use any one method from below:
- change push command to → docker push kjackal/mynginx:public
- change tag command to → docker tag 1fe3d8f47868 kjackal/mynginx:latest