-
Notifications
You must be signed in to change notification settings - Fork 64
docker proxy
Evgeny Chugunnyy (John) edited this page Feb 14, 2024
·
5 revisions
Artipie Docker Proxy repository redirects all pull requests to specified remote registries:
repo:
type: docker-proxy
# optional, storage to cache pulled images and to enable push operation
storage:
type: fs
path: /tmp/artipie/data/my-docker
http_client: # optional, settings for the HttpClient that will be used in xxx-proxy repositories
connection_timeout: 25000 # optional, default 15000 ms
idle_timeout: 500 # optional, default 0
trust_all: true # optional, default false
follow_redirects: true # optional, default true
http3: true # optional, default false
jks: # optional
path: /var/artipie/keystore.jks
password: secret
proxies:
- url: http://proxy1.com
- url: https://proxy2.com
# the HTTP "Basic" authentication defined in RFC 2617
realm: user_realm # if this field is defined, then `username` and `password` are mandatory
username: user_name
password: user_password
remotes:
- url: registry-1.docker.io
- url: mcr.microsoft.com
username: alice # optional, remote login
password: abc123 # optional, remote password
In the remotes
section at least one url
is required. Credentials can be set in userename
and password
fields. Proxy repository also supports caching of pulled images in local storage
if optional storage
section is configured. When several remotes are specified, Artipie
will try to request the image from each remote while the image is not found.
When storage
section under meta
section in configured, it is also possible to push images
using docker push
command to proxy repository and store them locally.
Find the example how to pull and push images into docker registry in Docker repository section.