How to login to github docker hub registry from command prompt or shell

Make sure you have docker installed on your machine and run

docker login ghcr.io — username <username>

After pressing ENTER, you are prompted for a password

Password:

Enter the Personal access token from your github account here https://github.com/settings/tokens and you should see the message

Login Succeeded

After successful login, you can pull and push your images to/from your local machine

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store