[Personal notes] How to push a Docker image to GitHub Packages

I referred to this. Use personal access tokens --GitHub Docs [Configure Docker for use with GitHub Packages-GitHub Docs](https://docs.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-docker-for -use-with-github-packages)


I just wanted to try GitHub Packages.


It's the same method as the formula.

--Introduction Refer to here to get an access token.

--Create a text file with the obtained access token, for example, TOKEN.txt, and enter it.

--Save TOKEN.txt to any location. (I saved it in C: \ Users \ username \ Dockerfile.)

docker login


Build docker image

Publish image

Recommended Posts

[Personal notes] How to push a Docker image to GitHub Packages
Steps to push Docker image to GitHub Container Registry (ghcr.io)
How to deploy to Heroku from a local docker image
How to push from Tarminal to GitHub
How to get a heapdump from a Docker container
How to make Spring Boot Docker Image smaller
Push the image to docker hub using Jib
How to create a small docker image of openjdk 11 (ea) application (1GB → 85MB)
Test, build, and push your Docker image to GitHub Container Registry using GitHub Actions
How to install Docker
How to push an app developed with Rails to Github
[Rails 6] How to set a background image in Rails [CSS]
Push Docker images from GitHub Actions to GitHub Container Registry
How to create a lightweight container image for Java apps
How to leave a comment
How to store a string from ArrayList to String in Java (Personal)
Until you push to Github
How to insert a video
How to create a method
How to run a job with docker login in AWS batch
Use Jenkins to build inside Docker and then create a Docker image.
[GCP] Until you push the local Docker image to the Container Registry
How to use arrays (personal memorandum)
How to add columns to a table
Create a lightweight STNS Docker image
Send a pull request to GitHub
How to make a Java container
Migrate Docker image to another server
How to make a JDBC driver
How to write a ternary operator
[Swift] How to send a notification
How to make a Jenkins plugin
[Artifactory] How to use Docker repository
How to make a Maven project
How to make a Java array
How to distinguish ubuntu cloud image
How to build CloudStack using Docker
How to start Camunda with Docker
How to quickly create a reverse proxy that supports HTTPS with Docker
[Personal memo] How to interact with a random number generator in Java
How to build a Ruby on Rails environment using Docker (for Docker beginners)
A shell script that builds a Docker image and pushes it to ECR
How to build a Ruby on Rails development environment with Docker (Rails 6.x)
[AWS CLI] Switch roles to get a Docker image in another account
How to migrate a web application created in a local docker environment to AWS
How to build a Ruby on Rails development environment with Docker (Rails 5.x)
How to start a Docker container with a volume mounted in a batch file
[Xcode] How to add a README.md file
How to crop an image with libGDX
How to execute a contract using web3j
How to sort a List using Comparator
Publish Docker Image on GitHub Package Registry
How to make a Java calendar Summary
A memorandum on how to use Eclipse
How to share files with Docker Toolbox
How to redo a deployment on Heroku
How to blur an image (super easy)
[Rails] How to use rails console with docker
[Basic] How to write a Dockerfile Self-learning ②
How to add a new hash / array
[Introduction to Java] How to write a Java program