From 0a7648edb5f2963392a01e297c28a0a6c6fa4e25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20L=C3=B6rwald?= <10850250+stefanloerwald@users.noreply.github.com> Date: Mon, 19 Apr 2021 12:05:01 +0200 Subject: [PATCH] Fixes docker/distribution-library-image/issues/107 The registry docker image no longer contains htpasswd. --- docs/deploying.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/deploying.md b/docs/deploying.md index 1ca51a75..8253ed40 100644 --- a/docs/deploying.md +++ b/docs/deploying.md @@ -409,7 +409,13 @@ secrets. $ mkdir auth $ docker run \ --entrypoint htpasswd \ - registry:2 -Bbn testuser testpassword > auth/htpasswd + httpd:2 -Bbn testuser testpassword > auth/htpasswd + ``` + + On Windows, make sure the output file is correctly encoded: + + ```powershell + docker run --rm --entrypoint htpasswd httpd:2 -Bbn testuser testpassword | Set-Content -Encoding ASCII auth/htpasswd ``` 2. Stop the registry.