Skip to content

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