-
Notifications
You must be signed in to change notification settings - Fork 61
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
Explicit login instructions and two minor fixes #2
Conversation
When I tried running this, it threw back this error: docker push localhost:5000/mozart/busybox ```The push refers to a repository [localhost:5000/mozart/busybox] 5f70bf18a086: Image push failed 16a7ebd37800: Preparing Get http://localhost:5000/v2/: malformed HTTP response "\x15\x03\x01\x00\x02\x02" ``` The solution was to explicitly log in first with ``docker login localhost:5000``.
@@ -143,6 +143,8 @@ cfa753dfea5e: Image successfully pushed | |||
latest: digest: sha256:15eda5ab78f31658ab922650eebe9da9ccc6c16462d5ef0bfd6d9f29b8800569 size: 2743 | |||
``` | |||
|
|||
If you are not automatically prompted to log in, you can explicitly log in before pushing, with ``docker login 0.0.0.0:5000``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One backslash is enough. Please correct this and then I'll merge this PR. Thank you for contributing.
if entrypoint is specified the container fails to launch
workaround for error `authn kwk#2 returned error: open /tmp/ldap_password.txt.clean: no such file or directory` when starting auth container
This PR now also addresses two minor errors. SystemReproduced on:
ErrorsCannot start auth containerTo reproduce the error, follow the instructions in the readme (as root):
The solution is to remove ldap_password file not foundWhen attempting to log in to the registry this error is shown:
The auth container logs this error:
The workaround is to change the path to the passwords file to |
@@ -26,7 +26,7 @@ ldap_auth: | |||
# specify them here. Plain text password is read from the file. | |||
bind_dn: "uid=serviceaccount,ou=it,dc=example,dc=com" | |||
# Make sure you remove newlines and carriage returns from the password file. | |||
bind_password_file: /tmp/ldap_password.txt.clean | |||
bind_password_file: /config/ldap_password.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a start.sh
to fix this issue as work around already.
https://github.com/kwk/docker-registry-setup/blob/master/auth/start.sh#L8
When I tried running this, it threw back this error:
docker push localhost:5000/mozart/busybox
The solution was to explicitly log in first with
docker login localhost:5000
.