Created
September 15, 2020 20:20
-
-
Save aledpardo/45c7ed57833c56f1cb7fece15453fd28 to your computer and use it in GitHub Desktop.
Docker Images - How to build, save, tag and push to a registry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build -f Dockerfile -t <image-name> . | |
docker save <image-name> > docker/<image-name>.tar | |
docker images | |
docker tag <image-name>:<tag> <repo-root>/<image-name>:<tag> | |
docker push <repo-root>/<image-name>:<tag> | |
docker login | |
docker push <repo-root>/<image-name>:<tag> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment