File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ docker run --rm --name docker_registry_proxy -it \
3535 -v $( pwd) /docker_mirror_certs:/ca \
3636 -e REGISTRIES=" k8s.gcr.io gcr.io quay.io your.own.registry another.public.registry" \
3737 -e AUTH_REGISTRIES=" auth.docker.io:dockerhub_username:dockerhub_password your.own.registry:username:password" \
38- rpardini/docker-registry-proxy:0.2.3
38+ rpardini/docker-registry-proxy:0.2.4
3939```
4040
4141Let's say you did this on host ` 192.168.66.72 ` , you can then ` curl http://192.168.66.72:3128/ca.crt ` and get the proxy CA certificate.
Original file line number Diff line number Diff line change @@ -124,23 +124,13 @@ http {
124124 location /setup/systemd {
125125 add_header "Content-type" "text/plain" always;
126126 return 200 '
127- set -e
127+ set -e
128128
129- if [ ! -d /etc/systemd ]; then
129+ if [ ! -d /etc/systemd ]; then
130130 echo "Not a systemd system"
131131 exit 1
132132fi
133133
134- if [[ $EUID -ne 0 ]]; then
135- echo "Must be root to change system files"
136- exit 1
137- fi
138-
139- if [[ $( systemctl is-active --quiet docker.service) -ne 0 ]]; then
140- echo "Docker service missing"
141- exit 1
142- fi
143-
144134mkdir -p /etc/systemd/system/docker.service.d
145135cat << EOD > /etc/systemd/system/docker.service.d/http -proxy.conf
146136[Service]
You can’t perform that action at this time.
0 commit comments