Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 27c63f1

Browse files
author
Matthias Koeppe
committed
Improve docker login instructions
1 parent 4f4fe60 commit 27c63f1

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

src/doc/en/developer/portability_testing.rst

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,13 +1018,21 @@ The ``docker`` workflows automatically push images to
10181018
GitHub repository.
10191019

10201020
In order to pull them for use on your computer, you need to first
1021-
visit https://github.com/settings/tokens/new to generate a Personal
1022-
Access Token providing the ``read:packages`` scope. Then log in using
1023-
your GitHub user name and the Personal Access Token::
1021+
generate a Personal Access Token providing the ``read:packages`` scope
1022+
as follows. Visit https://github.com/settings/tokens/new (this may
1023+
prompt you for your GitHub password). As "Note", type "Access
1024+
docker.pkg.github.com"; then in "Select scopes", select the checkbox
1025+
for ``read:packages``. Finally, push the "Generate token" button at
1026+
the bottom. This will lead to a page showing your token, such as
1027+
``de1ec7ab1ec0ffee5ca1dedbaff1ed0ddba11``. Copy this token and paste
1028+
it to the command line::
10241029

1025-
$ docker login docker.pkg.github.com
1030+
$ echo de1ec7ab1ec0ffee5ca1dedbaff1ed0ddba11 | docker login docker.pkg.github.com --username YOUR-GITHUB-USERNAME
1031+
1032+
where you replace the token by your token, of course, and
1033+
``YOUR-GITHUB-USERNAME`` by your GitHub username.
10261034

10271035
Now you can pull the image and run it::
10281036

1029-
$ docker pull docker.pkg.github.com/mkoeppe/sage/sage-docker-fedora-31-standard-configured:f4bd671
1030-
$ docker run -it docker.pkg.github.com/mkoeppe/sage/sage-docker-fedora-31-standard-configured:f4bd671 bash
1037+
$ docker pull docker.pkg.github.com/YOUR-GITHUB-USERNAME/sage/sage-docker-fedora-31-standard-configured:f4bd671
1038+
$ docker run -it docker.pkg.github.com/YOUR-GITHUB-USERNAME/sage/sage-docker-fedora-31-standard-configured:f4bd671 bash

0 commit comments

Comments
 (0)