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
a48491d6
Commit
a48491d6
authored
May 27, 2020
by
Julian Paul Dasmarinas
Committed by
Evan Read
May 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added AWS credentials for Docker credential helper
parent
6c31afe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
doc/ci/docker/using_docker_images.md
doc/ci/docker/using_docker_images.md
+15
-0
No files found.
doc/ci/docker/using_docker_images.md
View file @
a48491d6
...
...
@@ -727,6 +727,9 @@ To configure access for `aws_account_id.dkr.ecr.region.amazonaws.com`, follow th
1.
Make sure
`docker-credential-ecr-login`
is available in GitLab Runner's
`$PATH`
.
1.
Have any of the following
[
AWS credentials setup
](
https://github.com/awslabs/amazon-ecr-credential-helper#aws-credentials
)
.
Make sure that GitLab Runner can access the credentials.
1.
Make GitLab Runner use it. There are two ways to accomplish this. Either:
-
Create a
[
variable
](
../variables/README.md#gitlab-cicd-environment-variables
)
...
...
@@ -741,6 +744,18 @@ To configure access for `aws_account_id.dkr.ecr.region.amazonaws.com`, follow th
}
```
This configures docker to use the credential helper for a specific registry.
or
```json
{
"credsStore": "ecr-login"
}
```
This configures docker to use the credential helper for all Amazon ECR registries.
-
Or, if you are running self-managed Runners,
add the above JSON to
`${GITLAB_RUNNER_HOME}/.docker/config.json`
.
GitLab Runner will read this config file and will use the needed helper for this
...
...
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