Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e5f014a2
Commit
e5f014a2
authored
Jan 14, 2022
by
Ulises Fierro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update style in ECR private registry example
This commit makes it more obvious this is a placeholder / example
parent
99114abe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
doc/ci/docker/using_docker_images.md
doc/ci/docker/using_docker_images.md
+6
-6
No files found.
doc/ci/docker/using_docker_images.md
View file @
e5f014a2
...
...
@@ -401,10 +401,10 @@ pulling from Docker Hub fails. Docker daemon tries to use the same credentials f
> Introduced in GitLab Runner 12.0.
As an example, let's assume that you want to use the
`
aws_account_id.dkr.ecr.region
.amazonaws.com/private/image:latest`
As an example, let's assume that you want to use the
`
<aws_account_id>.dkr.ecr.<region>
.amazonaws.com/private/image:latest`
image. This image is private and requires you to log in into a private container registry.
To configure access for
`
aws_account_id.dkr.ecr.region
.amazonaws.com`
, follow these steps:
To configure access for
`
<aws_account_id>.dkr.ecr.<region>
.amazonaws.com`
, follow these steps:
1.
Make sure
`docker-credential-ecr-login`
is available in the GitLab Runner
`$PATH`
.
1.
Have any of the following
[
AWS credentials setup
](
https://github.com/awslabs/amazon-ecr-credential-helper#aws-credentials
)
.
...
...
@@ -418,7 +418,7 @@ To configure access for `aws_account_id.dkr.ecr.region.amazonaws.com`, follow th
```json
{
"credHelpers": {
"
aws_account_id.dkr.ecr.region
.amazonaws.com": "ecr-login"
"
<aws_account_id>.dkr.ecr.<region>
.amazonaws.com": "ecr-login"
}
}
```
...
...
@@ -438,14 +438,14 @@ To configure access for `aws_account_id.dkr.ecr.region.amazonaws.com`, follow th
GitLab Runner reads this configuration file and uses the needed helper for this
specific repository.
1.
You can now use any private image from
`
aws_account_id.dkr.ecr.region
.amazonaws.com`
defined in
1.
You can now use any private image from
`
<aws_account_id>.dkr.ecr.<region>
.amazonaws.com`
defined in
`image`
and/or
`services`
in your
`.gitlab-ci.yml`
file:
```
yaml
image
:
aws_account_id.dkr.ecr.region
.amazonaws.com/private/image:latest
image
:
<aws_account_id>.dkr.ecr.<region>
.amazonaws.com/private/image:latest
```
In the example, GitLab Runner looks at
`
aws_account_id.dkr.ecr.region
.amazonaws.com`
for the
In the example, GitLab Runner looks at
`
<aws_account_id>.dkr.ecr.<region>
.amazonaws.com`
for the
image
`private/image:latest`
.
You can add configuration for as many registries as you want, adding more
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment