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
c9698236
Commit
c9698236
authored
Mar 12, 2021
by
Tim Rizzi
Committed by
Nick Gaskill
Mar 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pull by digest example to the dependency proxy
parent
c0075c3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
doc/user/packages/dependency_proxy/index.md
doc/user/packages/dependency_proxy/index.md
+11
-2
No files found.
doc/user/packages/dependency_proxy/index.md
View file @
c9698236
...
...
@@ -94,9 +94,11 @@ Runners log in to the Dependency Proxy automatically. To pull through
the Dependency Proxy, use the
`CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX`
[
predefined CI/CD variable
](
../../../ci/variables/predefined_variables.md
)
:
Example pulling the latest alpine image:
```
yaml
# .gitlab-ci.yml
image
:
${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/
nod
e:latest
image
:
${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/
alpin
e:latest
```
There are other additional predefined CI/CD variables you can also use:
...
...
@@ -124,13 +126,20 @@ To store a Docker image in Dependency Proxy storage:
1.
Go to your group's
**Packages & Registries > Dependency Proxy**
.
1.
Copy the
**Dependency Proxy URL**
.
1.
Use one of these commands. In these examples, the image is
`alpine:latest`
.
1.
You can also pull images by digest to specify exactly which version of an image to pull.
-
Add the URL
to your
[
`.gitlab-ci.yml`
](
../../../ci/yaml/README.md#image
)
file:
-
Pull an image by tag by adding the image
to your
[
`.gitlab-ci.yml`
](
../../../ci/yaml/README.md#image
)
file:
```shell
image: gitlab.example.com/groupname/dependency_proxy/containers/alpine:latest
```
-
Pull an image by digest by adding the image to your
[
`.gitlab-ci.yml`
](
../../../ci/yaml/README.md#image
)
file:
```shell
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/alpine@sha256:c9375e662992791e3f39e919b26f510e5254b42792519c180aad254e6b38f4dc
```
-
Manually pull the Docker image:
```shell
...
...
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