Open majusmisiak opened 10 months ago
Hi @majusmisiak could you try to run your example without --docker-host inherit
in your pack build
command?, in this particular case I tried to understand the containers that are executed and I my thoughts are:
pack build
command the docker socket is at tcp://localhost:2375 (DOCKER_HOST env) which is pointing to the other container running in the same poddocker-host inherit
indicates the socket is also running in tcp://localhost:2375 BUT from that builder container localhost is the container itself not the container running the daemon and I think this is breaking the hostname resolution Any further updates here?
Summary
I am running remote docker builder on TCP port (
tcp://localhost:2375
, no TLS).When running
pack build
command with--publish
and--image-cache
flags I receive unauthorized error. Alldocker
CLI commands (pull, push) work normally.Reproduction
Steps
Create Private registry in Harbor and robot account with read/write credentials.
Create a Pod in Kubernetes:
Exec into docker container.
Download pack binary.
Run following commands:
OUTPUT
See that the builder image was pulled, but the authorization to Harbor failed.
Current behavior
Authorization to registry failed.
Expected behavior
Cache image pushed to Harbor. Build Image pushed to Harbor.
Environment
pack info
docker info