[Docker Plugin] Cannot add Docker as resource

Hello,
I have a problem with adding docker as a resource. In the end I will always
get:

Unable to save

  • Docker::Error::AuthenticationError

I am running Foreman 1.11 and plugin is installed via foreman-installer.
When I am filling information I fill it like this:

<https://lh3.googleusercontent.com/-b9eGAa0L-1M/VxO4wVmhL6I/AAAAAAAAAVE/OyKtuFmMDtUTlPlv1v5OHHSmqq2cgDhBACLcB/s1600/foreman.png>

The logs from Docker daemon says this:

Apr 17 18:20:46 foreman.maklocal docker[1438]:
time="2016-04-17T18:20:46.775691030+02:00" level=error msg="Handler for
POST /v1.16/auth returned error: Get https:///v1/users/: http: no Host in
request URL"
Apr 17 18:20:46 foreman.maklocal docker[1438]:
time="2016-04-17T18:20:46.787459374+02:00" level=info msg="Error logging in
to v2 endpoint, trying next endpoint: Get https:///v2/: http: no Host in
request URL"
Apr 17 18:20:46 foreman.maklocal docker[1438]:
time="2016-04-17T18:20:46.787509600+02:00" level=info msg="Error logging in
to v1 endpoint, trying next endpoint: Get https:///v1/users/: http: no Host
in request URL"
Apr 17 18:20:46 foreman.maklocal docker[1438]:
time="2016-04-17T18:20:46.787520944+02:00" level=error msg="Handler for
POST /v1.16/auth returned error: Get https:///v1/users/: http: no Host in
request URL"
Apr 17 18:23:24 foreman.maklocal docker[1438]:
time="2016-04-17T18:23:24.689026254+02:00" level=info msg="Error logging in
to v2 endpoint, trying next endpoint: Get https:///v2/: http: no Host in
request URL"
Apr 17 18:23:24 foreman.maklocal docker[1438]:
time="2016-04-17T18:23:24.690003812+02:00" level=info msg="Error logging in
to v1 endpoint, trying next endpoint: Get https:///v1/users/: http: no Host
in request URL"
Apr 17 18:23:24 foreman.maklocal docker[1438]:
time="2016-04-17T18:23:24.690019236+02:00" level=error msg="Handler for
POST /v1.16/auth returned error: Get https:///v1/users/: http: no Host in
request URL"
Apr 17 18:23:24 foreman.maklocal docker[1438]:
time="2016-04-17T18:23:24.700925866+02:00" level=info msg="Error logging in
to v2 endpoint, trying next endpoint: Get https:///v2/: http: no Host in
request URL"
Apr 17 18:23:24 foreman.maklocal docker[1438]:
time="2016-04-17T18:23:24.700961080+02:00" level=info msg="Error logging in
to v1 endpoint, trying next endpoint: Get https:///v1/users/: http: no Host
in request URL"
Apr 17 18:23:24 foreman.maklocal docker[1438]:
time="2016-04-17T18:23:24.700971360+02:00" level=error msg="Handler for
POST /v1.16/auth returned error: Get https:///v1/users/: http: no Host in
request URL"

Both firewall and selinux are offline so probably no issues here.

Can anybody please give me any hint how to fix this issue so I can use
docker as an resource?

Thank you.

Hi,
so I have found a solution. You just need to leave username, email and
password blank and than the connection will be successful.

Can you please modify the tutorial and explicitly mention this so other
users like I won't have the same issue? Thank you.

··· On Sunday, April 17, 2016 at 6:27:21 PM UTC+2, Martin šMaK wrote: > > Hello, > I have a problem with adding docker as a resource. In the end I will > always get: > > *Unable to save* > - Docker::Error::AuthenticationError > > I am running Foreman 1.11 and plugin is installed via foreman-installer. > When I am filling information I fill it like this: > > > > > The logs from Docker daemon says this: > > Apr 17 18:20:46 foreman.maklocal docker[1438]: > time="2016-04-17T18:20:46.775691030+02:00" level=error msg="Handler for > POST /v1.16/auth returned error: Get https:///v1/users/: http: no Host in > request URL" > Apr 17 18:20:46 foreman.maklocal docker[1438]: > time="2016-04-17T18:20:46.787459374+02:00" level=info msg="Error logging in > to v2 endpoint, trying next endpoint: Get https:///v2/: http: no Host in > request URL" > Apr 17 18:20:46 foreman.maklocal docker[1438]: > time="2016-04-17T18:20:46.787509600+02:00" level=info msg="Error logging in > to v1 endpoint, trying next endpoint: Get https:///v1/users/: http: no Host > in request URL" > Apr 17 18:20:46 foreman.maklocal docker[1438]: > time="2016-04-17T18:20:46.787520944+02:00" level=error msg="Handler for > POST /v1.16/auth returned error: Get https:///v1/users/: http: no Host in > request URL" > Apr 17 18:23:24 foreman.maklocal docker[1438]: > time="2016-04-17T18:23:24.689026254+02:00" level=info msg="Error logging in > to v2 endpoint, trying next endpoint: Get https:///v2/: http: no Host in > request URL" > Apr 17 18:23:24 foreman.maklocal docker[1438]: > time="2016-04-17T18:23:24.690003812+02:00" level=info msg="Error logging in > to v1 endpoint, trying next endpoint: Get https:///v1/users/: http: no Host > in request URL" > Apr 17 18:23:24 foreman.maklocal docker[1438]: > time="2016-04-17T18:23:24.690019236+02:00" level=error msg="Handler for > POST /v1.16/auth returned error: Get https:///v1/users/: http: no Host in > request URL" > Apr 17 18:23:24 foreman.maklocal docker[1438]: > time="2016-04-17T18:23:24.700925866+02:00" level=info msg="Error logging in > to v2 endpoint, trying next endpoint: Get https:///v2/: http: no Host in > request URL" > Apr 17 18:23:24 foreman.maklocal docker[1438]: > time="2016-04-17T18:23:24.700961080+02:00" level=info msg="Error logging in > to v1 endpoint, trying next endpoint: Get https:///v1/users/: http: no Host > in request URL" > Apr 17 18:23:24 foreman.maklocal docker[1438]: > time="2016-04-17T18:23:24.700971360+02:00" level=error msg="Handler for > POST /v1.16/auth returned error: Get https:///v1/users/: http: no Host in > request URL" > > > Both firewall and selinux are offline so probably no issues here. > > Can anybody please give me any hint how to fix this issue so I can use > docker as an resource? > > Thank you. >