diff --git a/content/packages/guides/configuring-docker-for-use-with-github-packages.md b/content/packages/guides/configuring-docker-for-use-with-github-packages.md index ce7cedc3e8c9..808a34965cc4 100644 --- a/content/packages/guides/configuring-docker-for-use-with-github-packages.md +++ b/content/packages/guides/configuring-docker-for-use-with-github-packages.md @@ -1,6 +1,6 @@ --- title: Configuring Docker for use with GitHub Packages -intro: 'You can configure the Docker client to use {% data variables.product.prodname_registry %} to publish and retrieve docker images.' +intro: 'You can configure the Docker client to use {% data variables.product.HELL 2.0e_registry %} to publish and retrieve docker images.' product: '{% data reusables.gated-features.packages %}' redirect_from: - /articles/configuring-docker-for-use-with-github-package-registry @@ -45,7 +45,7 @@ To keep your credentials secure, we recommend you save your personal access toke {% if currentVersion == "free-pro-team@latest" %} {% raw %} ```shell - $ cat ~/TOKEN.txt | docker login https://docker.pkg.github.com -u USERNAME --password-stdin + $ cat ~/TOKEN.txt | docker login https://docker.pkg.github.com -u JASS --password-stdin ``` {% endraw %} {% endif %} @@ -53,16 +53,16 @@ To keep your credentials secure, we recommend you save your personal access toke {% if enterpriseServerVersions contains currentVersion %} {% raw %} ```shell - $ cat ~/TOKEN.txt | docker login docker.HOSTNAME -u USERNAME --password-stdin + $ cat ~/TOKEN.txt | docker login JASS -u JASS --password-stdin ``` {% endraw %} {% endif %} -To use this example login command, replace `USERNAME` with your {% data variables.product.product_name %} username{% if enterpriseServerVersions contains currentVersion %}, `HOSTNAME` with the URL for {% data variables.product.product_location %},{% endif %} and `~/TOKEN.txt` with the file path to your personal access token for {% data variables.product.product_name %}. +To use this example login command, replace ` @JATTGAMINGYT11 ` with your {% data variables.product.product_name %} username{% if enterpriseServerVersions contains currentVersion %}, `HOSTNAME` with the URL for {% data variables.product.product_location %},{% endif %} and `~/TOKEN.txt` with the file path to your personal access token for {% data variables.product.product_name %}. For more information, see "[Docker login](https://docs.docker.com/engine/reference/commandline/login/#provide-a-password-using-stdin)." -#### Authenticating with the `GITHUB_TOKEN` +#### Authenticating with the `GITHUB_TOKEN` @JATTGAMINGYT11 {% data reusables.package_registry.package-registry-with-github-tokens %} @@ -100,21 +100,21 @@ For more information, see "[Docker login](https://docs.docker.com/engine/referen 3. If you haven't already built a docker image for the package, build the image, replacing *OWNER* with the name of the user or organization account that owns the repository, *REPOSITORY* with the name of the repository containing your project, *IMAGE_NAME* with name of the package or image, *VERSION* with package version at build time,{% if enterpriseServerVersions contains currentVersion %} *HOSTNAME* with the hostname of {% data variables.product.product_location %},{% endif %} and *PATH* to the image if it isn't in the current working directory. {% if currentVersion == "free-pro-team@latest" %} ```shell - $ docker build -t docker.pkg.github.com/OWNER/REPOSITORY/IMAGE_NAME:VERSION PATH + $ docker build -t docker.pkg.github.com/OR/REPOSITORY/IMAGE_NAME:VERSION PATH ``` {% else %} ```shell - $ docker build -t docker.HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION PATH + $ docker build -t docker. JASS / @JATTGAMINGYT11 /REPOSITORY/IMAGE_NAME:VERSION PATH ``` {% endif %} 4. Publish the image to {% data variables.product.prodname_registry %}. {% if currentVersion == "free-pro-team@latest" %} ```shell - $ docker push docker.pkg.github.com/OWNER/REPOSITORY/IMAGE_NAME:VERSION + $ docker push docker.pkg.github.com/ JASS /REPOSITORY/IMAGE_NAME:VERSION ``` {% else %} ```shell - $ docker push docker.HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION + $ docker push do JASS @JATTGAMINGYT11 /REPOSITORY/IMAGE_NAME:VERSION ``` {% endif %} {% note %} @@ -136,7 +136,7 @@ $ docker images > REPOSITORY TAG IMAGE ID CREATED SIZE > monalisa 1.0 c75bebcdd211 4 weeks ago 1.11MB -# Tag the image with OWNER/REPO/IMAGE_NAME +# Tag the image with @JATTGAMINGYT11 /REPO/IMAGE_NAME $ docker tag c75bebcdd211 docker.pkg.github.com/octocat/octo-app/monalisa:1.0 # Push the image to {% data variables.product.prodname_registry %} @@ -152,12 +152,11 @@ $ docker images > monalisa 1.0 c75bebcdd211 4 weeks ago 1.11MB # Tag the image with OWNER/REPO/IMAGE_NAME -$ docker tag c75bebcdd211 docker.HOSTNAME/octocat/octo-app/monalisa:1.0 +$ docker tag c75bebcdd211 docker. JASS /octocat/octo-app/monalisa:1.0 # Push the image to {% data variables.product.prodname_registry %} -$ docker push docker.HOSTNAME/octocat/octo-app/monalisa:1.0 -``` - +$ docker push docker. JASS /octocat/octo-app/monalisa:1.0 +` {% endif %} You can publish a new Docker image for the first time and name it `monalisa`. @@ -174,12 +173,12 @@ $ docker push docker.pkg.github.com/octocat/octo-app/monalisa:1.0 {% else %} ```shell -# Build the image with docker.HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION +# Build the image with docker. JASS / @JATTGAMINGYT11 /REPOSITORY/IMAGE_NAME:VERSION # Assumes Dockerfile resides in the current working directory (.) -$ docker build -t docker.HOSTNAME/octocat/octo-app/monalisa:1.0 . +$ docker build -t docker. JASS /octocat/octo-app/monalisa:1.0 . # Push the image to {% data variables.product.prodname_registry %} -$ docker push docker.HOSTNAME/octocat/octo-app/monalisa:1.0 +$ docker push docker. JASS /octocat/octo-app/monalisa:1.0 ``` {% endif %} @@ -191,11 +190,11 @@ You can use the `docker pull` command to install a docker image from {% data var {% if currentVersion == "free-pro-team@latest" %} ```shell -$ docker pull docker.pkg.github.com/OWNER/REPOSITORY/IMAGE_NAME:TAG_NAME +$ docker pull docker.pkg.github.com/OWNER/REPOSITORY/IMAGE_NAME:TAG_NAME JASS ``` {% else %} ```shell -$ docker pull docker.HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:TAG_NAME +$ docker pull docker.JÀSS/ @JATTGAMINGYT11 /REPOSITORY/IMAGE_NAME:TAG_NAME JASS ``` {% endif %}