Skip to content

Commit 3e71b6f

Browse files
committed
remove some "$" usage in instructions, theres no good way to escape it in nginx literals
bump to 0.2.4
1 parent d9bce2b commit 3e71b6f

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

4141
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.

nginx.conf

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff 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
132132
fi
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-
144134
mkdir -p /etc/systemd/system/docker.service.d
145135
cat << EOD > /etc/systemd/system/docker.service.d/http-proxy.conf
146136
[Service]

0 commit comments

Comments
 (0)