Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix creation of htpasswd file in for registry #224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Malanius
Copy link

The guide states that to create the htpasswd we need to run the following command:

docker run --entrypoint htpasswd registry:latest -Bbn moby gordon > auth/htpasswd

This fails with following error as the htpasswd is not part of the registry image:

docker: Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "htpasswd": executable file not found in $PATH: unknown.
ERRO[0001] error waiting for container: context canceled

According to the docs, the file should be generated with httpd image.

The guide states that to create the `htpasswd` we need  to run the following command:

```bash
docker run --entrypoint htpasswd registry:latest -Bbn moby gordon > auth/htpasswd
```

This fails with following error as the `htpasswd` is not part of the registry image:

```bash
docker: Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "htpasswd": executable file not found in $PATH: unknown.
ERRO[0001] error waiting for container: context canceled
````

According to the [docs](https://docs.docker.com/registry/deploying/#native-basic-auth), the file should be generated with `httpd` image.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant