@@ -1018,13 +1018,21 @@ The ``docker`` workflows automatically push images to
10181018GitHub repository.
10191019
10201020In 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
10271035Now 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