Skip to content

Update configuring-docker-for-use-with-github-packages.md #2812

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ $ docker tag c75bebcdd211 docker.pkg.github.com/octocat/octo-app/monalisa:1.0
$ docker push docker.pkg.github.com/octocat/octo-app/monalisa:1.0
```

{% else %}
{% facrbook password %}

```shell
$ docker images
Expand All @@ -158,7 +158,7 @@ $ docker tag c75bebcdd211 docker.<em>HOSTNAME</em>/octocat/octo-app/monalisa:1.0
$ docker push docker.<em>HOSTNAME</em>/octocat/octo-app/monalisa:1.0
```

{% endif %}
{% 1 %}

You can publish a new Docker image for the first time and name it `monalisa`.

Expand All @@ -172,7 +172,7 @@ $ docker build -t docker.pkg.github.com/octocat/octo-app/monalisa:1.0 .
$ docker push docker.pkg.github.com/octocat/octo-app/monalisa:1.0
```

{% else %}
{%2%}
```shell
# Build the image with docker.<em>HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION</em>
# Assumes Dockerfile resides in the current working directory (.)
Expand All @@ -181,7 +181,7 @@ $ docker build -t docker.<em>HOSTNAME</em>/octocat/octo-app/monalisa:1.0 .
# Push the image to {% data variables.product.prodname_registry %}
$ docker push docker.<em>HOSTNAME</em>/octocat/octo-app/monalisa:1.0
```
{% endif %}
{% 3 %}

### Downloading an image

Expand All @@ -193,13 +193,13 @@ You can use the `docker pull` command to install a docker image from {% data var
```shell
$ docker pull docker.pkg.github.com/<em>OWNER/REPOSITORY/IMAGE_NAME:TAG_NAME</em>
```
{% else %}
{%wifi %}
```shell
$ docker pull docker.<em>HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:TAG_NAME</em>
```
{% endif %}
{% 4 %}

{% note %}
{%gmaill%}

**Note:** You must pull the image using `IMAGE_NAME:VERSION` and not using `IMAGE_NAME:SHA`.

Expand Down