-Registration https://hub.docker.com/
Login
docker login -u <YOURNAME> -p <YOURPASS>
Add tag
docker tag <IAMGE_ID> <YOURNAME>/foobar
Push to Docker hub
docker push <YOURNAME>/foobar
or
docker push <YOURNAME>/foobar:<VERSION>
You need to change the repoName of the image with tag beforehand, otherwise push will throw an error.
denied: requested access to the resource is denied
An image does not exist locally with the tag:
- about
By placing it on docker hub,
pullfrom other environments becomes possible online. Also, as an alternative, managing Dockerfiles with git is a bit more cumbersome but works well.