Describe the bug
401 error is coming when makisu builds image and tries to push to local docker registry which has TLS enabled using self signed certificates with Basic Auth enabled.
Note: Tested without TLS and disabled tls client in registry config, in this case too same error is coming.
To Reproduce
Build the docker image and specify the destination to push image to a local docker registry which has TLS enabled using self signed certs and has basic auth enabled.
Note: Tried running the build with tag having local registry username:
-t registry.ketchup.com:5000/tessuser/makisutest
In this case too the error is same.
Expected behavior
Final image should get pushed to local docker registry.
Describe the bug 401 error is coming when makisu builds image and tries to push to local docker registry which has TLS enabled using self signed certificates with Basic Auth enabled.
Note: Tested without TLS and disabled tls client in registry config, in this case too same error is coming.
To Reproduce Build the docker image and specify the destination to push image to a local docker registry which has TLS enabled using self signed certs and has basic auth enabled.
Command:
/Users/neo/go/bin/makisu build -t registry.ketchup.com:5000/makisutest . --registry-config='{"registry.ketchup.com:5000": {".*": {"security": {"tls": {"client": {"disabled":false} , "ca": {"cert": {"path":"/Users/neo/Documents/dev/java/ketchup-demo-basicspringboot/registry_certs/domain.cert"}}}, "basic": {"username": "local-registry-username", "password": "local-registry-pwd"}}}}, "index.docker.io": {".*": {"security": {"tls": {"client": {"disabled":true}}, "basic": {"username": "docker-hub-username", "password": "docker-hub-pwd"}}}}}' --push=registry.ketchup.com:5000
Note: Tried running the build with tag having local registry username:
-t registry.ketchup.com:5000/tessuser/makisutest
In this case too the error is same.Expected behavior Final image should get pushed to local docker registry.
Screenshots
Environments Machine: MBPr2015 OS: MacOS Catalina 10.15.3 (19D76) Makisu Version: master-unreleased Docker Version: 19.03.5 Kubernetes Version: 1.15.5 Docker Desktop Version: 2.2.0.0
Additional context
Dockerfile:
Logs: