fix: correct quoting in command for Docker registry configuration

This commit is contained in:
Nathan 2026-04-17 15:51:33 -04:00
parent 7ecfda8fd7
commit 53e43508f3

View File

@ -13,7 +13,7 @@ services:
- HT_CONTENTS=${REGISTRY_AUTH_HTPASSWD_CONTENTS}
# Create the file on the fly before the registry starts
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:
- /mnt/appdata/docker_registry/data:/var/lib/registry
networks: