jfrog / artifactory-docker-examples

Examples for using Artifactory Docker distribution in various environments
https://www.jfrog.com/artifactory/
Apache License 2.0
330 stars 299 forks source link

Unable to login with docker through traefik #139

Open aacebedo opened 5 years ago

aacebedo commented 5 years ago

Hi all,

I am using the artifactory docker image 5.11 and I am unable to login when the container is behind the traefik reverse proxy (https://github.com/containous/traefik/).

I have configured the insecure option inthe docker daemon and when I execute the docker login command I received the following error: "unable to decode token response: EOF" If I try to map the container port 8081 to another host port (thus bypassing the reverse proxy) everything is fine and the login succeeds I don't know exactly what I shall add to the traefik configuration to correct this.

Any clue ?

aacebedo commented 5 years ago

When I compare the http request made by traefik with the request made directly by the docker client The difference is that traefik adds a set of http headers (X-Forwarded-...). I don't know how to remove them and if they are the cause of the issue

eldada commented 5 years ago

@jainishshah17 - can you have a look?