fix: correct quoting in command for Docker registry configuration
This commit is contained in:
parent
7ecfda8fd7
commit
53e43508f3
@ -13,7 +13,7 @@ services:
|
|||||||
- HT_CONTENTS=${REGISTRY_AUTH_HTPASSWD_CONTENTS}
|
- HT_CONTENTS=${REGISTRY_AUTH_HTPASSWD_CONTENTS}
|
||||||
# Create the file on the fly before the registry starts
|
# Create the file on the fly before the registry starts
|
||||||
command: >
|
command: >
|
||||||
sh -c "mkdir -p /auth && echo \"$$HT_CONTENTS\" > /auth/htpasswd && exec bin/registry serve /etc/docker/registry/config.yml"
|
sh -c "mkdir -p /auth && echo '$$HT_CONTENTS' > /auth/htpasswd && exec bin/registry serve /etc/docker/registry/config.yml"
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/appdata/docker_registry/data:/var/lib/registry
|
- /mnt/appdata/docker_registry/data:/var/lib/registry
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user