Last active
February 12, 2020 20:47
-
-
Save ross-humphrey/20457b158769a287e05747b3b7d48592 to your computer and use it in GitHub Desktop.
๐ธ Github Packages - Commands
This file contains hidden or 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
# Template for pushing to github packages | |
# authenticate on github | |
docker login docker.pkg.github.com --username <github_username> | |
# build image | |
docker build -t docker.pkg.github.com/<github_username>/<repository_name>/<image_name>:<version> <path_to_image_use_._if_in_current_directory> | |
# push image | |
docker push docker.pkg.github.com/<github_username>/<repository_name>/<image_name>:<version> | |
# Running a container: (Using Github Packages) | |
# pull image | |
docker pull docker.pkg.github.com/<github_username>/<repository_name>/<image_name>:<version> | |
# run image | |
2. docker run -d -p 80:80 docker.pkg.github.com/<github_username>/<repository_name>/<image_name>:<version> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment