File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ docker run --rm --name docker_registry_proxy -it \
35
35
-v $( pwd) /docker_mirror_certs:/ca \
36
36
-e REGISTRIES=" k8s.gcr.io gcr.io quay.io your.own.registry another.public.registry" \
37
37
-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
39
39
```
40
40
41
41
Let'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 {
124
124
location /setup/systemd {
125
125
add_header "Content-type" "text/plain" always;
126
126
return 200 '
127
- set -e
127
+ set -e
128
128
129
- if [ ! -d /etc/systemd ]; then
129
+ if [ ! -d /etc/systemd ]; then
130
130
echo "Not a systemd system"
131
131
exit 1
132
132
fi
133
133
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
-
144
134
mkdir -p /etc/systemd/system/docker.service.d
145
135
cat << EOD > /etc/systemd/system/docker.service.d/http-proxy.conf
146
136
[Service]
You can’t perform that action at this time.
0 commit comments