You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verify your email address, if it hasn't been verified yet.
In the upper-right corner of any page, click your profile photo, then click Settings.
In the left sidebar, click Developer settings.
In the left sidebar, click Personal access tokens.
Click Generate new token.
Give your token a descriptive name.
2. login
syed@syed-Latitude-3490:~/git/dockerImagePackages$ docker login docker.pkg.github.com -u 123iris -p PAT-token
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /home/syed/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
3. Rename your docker image with github repo name as shown below
4. Verify wether docker image is pushed as git repo packages
Upload docker image as github container registry(ghcr)
Follow step 1 & step 2 from above
Rename docker image to ghcr.io
syed@syed-Latitude-3490:~$ docker tag ubuntu:latest ghcr.io/123iris/dockerimagepackages:ubuntu1
syed@syed-Latitude-3490:~$ docker tag ubuntu:latest ghcr.io/123iris/dockerimagepackages:ubuntu2
push docker image to github container registry
syed@syed-Latitude-3490:~$ docker login ghcr.io -u 123iris -p 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
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /home/syed/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
syed@syed-Latitude-3490:~$ docker push ghcr.io/123iris/dockerimagepackages:ubuntu1
The push refers to repository [ghcr.io/123iris/dockerimagepackages]
a70daca533d0: Pushed
ubuntu1: digest: sha256:778fdd9f62a6d7c0e53a97489ab3db17738bc5c1acf09a18738a2a674025eae6 size: 529
syed@syed-Latitude-3490:~$ docker push ghcr.io/123iris/dockerimagepackages:ubuntu2
The push refers to repository [ghcr.io/123iris/dockerimagepackages]
a70daca533d0: Layer already exists
ubuntu2: digest: sha256:778fdd9f62a6d7c0e53a97489ab3db17738bc5c1acf09a18738a2a674025eae6 size: 529
syed@syed-Latitude-3490:~$