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
69ab4800
Commit
69ab4800
authored
Sep 23, 2020
by
Suzanne Selhorn
Committed by
Achilleas Pipinellis
Sep 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: Edited Dependency Proxy page
Related to:
https://gitlab.com/gitlab-org/gitlab/-/issues/247950
parent
e664c95a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
46 deletions
+46
-46
doc/user/packages/dependency_proxy/img/group_dependency_proxy.png
.../packages/dependency_proxy/img/group_dependency_proxy.png
+0
-0
doc/user/packages/dependency_proxy/index.md
doc/user/packages/dependency_proxy/index.md
+46
-46
No files found.
doc/user/packages/dependency_proxy/img/group_dependency_proxy.png
deleted
100644 → 0
View file @
e664c95a
28.6 KB
doc/user/packages/dependency_proxy/index.md
View file @
69ab4800
...
...
@@ -8,80 +8,80 @@ info: To determine the technical writer assigned to the Stage/Group associated w
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/7934) in [GitLab Premium](https://about.gitlab.com/pricing/) 11.11.
NOTE:
**Note:**
This is the user guide. In order to use the dependency proxy, an administrator
must first
[
configure it
](
../../../administration/packages/dependency_proxy.md
)
.
The GitLab Dependency Proxy is a local proxy you can use for your frequently-accessed
upstream images.
For many organizations, it is desirable to have a local proxy for frequently used
upstream images/packages. In the case of CI/CD, the proxy is responsible for
receiving a request and returning the upstream image from a registry, acting
as a pull-through cache.
In the case of CI/CD, the Dependency Proxy receives a request and returns the
upstream image from a registry, acting as a pull-through cache.
The dependency proxy is available in the group level. To access it, navigate to
a group's
**Packages & Registries > Dependency Proxy**
.
## Prerequisites
![
Dependency Proxy group page
](
img/group_dependency_proxy.png
)
To use the Dependency Proxy:
## Supported dependency proxies
-
Your group must be public. Authentication for private groups is
[
not supported yet
](
https://gitlab.com/gitlab-org/gitlab/-/issues/11582
)
.
NOTE:
**Note:**
For a list of the upcoming additions to the proxies, visit the
[
direction page
](
https://about.gitlab.com/direction/package/dependency_proxy/#top-vision-items
)
.
### Supported images and packages
The following
dependency proxi
es are supported.
The following
images and packag
es are supported.
|
Dependency proxy
| GitLab version |
|
Image/Package
| GitLab version |
| ---------------- | -------------- |
| Docker | 11.11+ |
## Using the Docker dependency proxy
For a list of planned additions, view the
[
direction page
](
https://about.gitlab.com/direction/package/dependency_proxy/#top-vision-items
)
.
## View the Dependency Proxy
To view the Dependency Proxy:
-
Go to your group's
**Packages & Registries > Dependency Proxy**
.
The Dependency Proxy is not available for projects.
## Use the Dependency Proxy for Docker images
You can use GitLab as a source for your Docker images.
With the Docker dependency proxy, you can use GitLab as a source for a Docker image.
To get a Docker image into the dependency proxy:
Prerequisites:
1.
Find the proxy URL on your group's page under
**Packages & Registries > Dependency Proxy**
,
for example
`gitlab.com/groupname/dependency_proxy/containers`
.
1.
Trigger GitLab to pull the Docker image you want (e.g.,
`alpine:latest`
or
`linuxserver/nextcloud:latest`
) and store it in the proxy storage by using
one of the following ways:
-
Your images must be stored on
[
Docker Hub
](
https://hub.docker.com/
)
.
-
Docker Hub must be available. Follow
[
this issue
](
https://gitlab.com/gitlab-org/gitlab/-/issues/241639
)
for progress on accessing images when Docker Hub is down.
-
Manually pulling the Docker image:
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`
.
-
Add the URL to your
[
`.gitlab-ci.yml`
](
../../../ci/yaml/README.md#image
)
file:
```shell
docker pull gitlab
.com/groupname/dependency_proxy/containers/alpine:latest
image: gitlab.example
.com/groupname/dependency_proxy/containers/alpine:latest
```
-
From a
`Dockerfile`
:
-
Manually pull the Docker image
:
```shell
FROM gitlab
.com/groupname/dependency_proxy/containers/alpine:latest
docker pull gitlab.example
.com/groupname/dependency_proxy/containers/alpine:latest
```
-
In
[
`.gitlab-ci.yml`
](
../../../ci/yaml/README.md#image
)
:
-
Add the URL to a
`Dockerfile`
:
```shell
image: gitlab
.com/groupname/dependency_proxy/containers/alpine:latest
FROM gitlab.example
.com/groupname/dependency_proxy/containers/alpine:latest
```
GitLab pulls the Docker image from Docker Hub and caches the blobs
on the GitLab server. The next time you pull the same image, GitLab gets the latest
information about the image from Docker Hub but serves the existing blobs
information about the image from Docker Hub
,
but serves the existing blobs
from the GitLab server.
The blobs are kept forever, and there is no hard limit on how much data can be
stored.
## Clearing the cache
## Clear the Dependency Proxy cache
It is possible to use the GitLab API to purge the dependency proxy cache for a
given group to gain back disk space that may be taken up by image blobs that
are no longer needed. See the
[
dependency proxy API documentation
](
../../../api/dependency_proxy.md
)
for more details.
## Limitations
The following limitations apply:
Blobs are kept forever on the GitLab server, and there is no hard limit on how much data can be
stored.
-
Only
[
public groups are supported
](
https://gitlab.com/gitlab-org/gitlab/-/issues/11582
)
(
authentication
is not supported yet).
-
Only Docker Hub is supported.
-
This feature requires Docker Hub being available.
To reclaim disk space used by image blobs that are no longer needed, use
the
[
Dependency Proxy API
](
../../../api/dependency_proxy.md
)
.
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