What are the user and password field for when using foreman-docker?

Hello,

I was giving foreman-docker a try today and hit this bug describe in the
urls below.

http://projects.theforeman.org/issues/9275
https://bugzilla.redhat.com/show_bug.cgi?id=1190059
https://github.com/theforeman/foreman-docker/pull/83

I'm new to docker, and it dawned on me that I do not know the purpose of
the username and password field when setting up a Docker compute resource
provider. Is this something I can enable on my docker host just like how I
add the flags to enable the remote api?

Thanks

Hi there,

They are supposed to be the username and password you use to log in to
the Docker hub. You need to run 'docker login' in the Docker host with
these credentials first. Sorry for the lack of docs, we're working on
it.

Thanks!

··· On Fri, Feb 27, 2015 at 4:01 PM, swygue wrote: > Hello, > > I was giving foreman-docker a try today and hit this bug describe in the > urls below. > > http://projects.theforeman.org/issues/9275 > https://bugzilla.redhat.com/show_bug.cgi?id=1190059 > https://github.com/theforeman/foreman-docker/pull/83 > > I'm new to docker, and it dawned on me that I do not know the purpose of the > username and password field when setting up a Docker compute resource > provider. Is this something I can enable on my docker host just like how I > add the flags to enable the remote api? > > Thanks > > > -- > You received this message because you are subscribed to the Google Groups > "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30

By the way, 1.2.1 won't require the fields, as a fix for this [1] has
been merged into the main trunk.
We'll release it March 2nd or 3rd.

··· On Sun, Mar 1, 2015 at 9:20 AM, Daniel Lobato wrote: > Hi there, > > They are supposed to be the username and password you use to log in to > the Docker hub. You need to run 'docker login' in the Docker host with > these credentials first. Sorry for the lack of docs, we're working on > it. > > Thanks! > > On Fri, Feb 27, 2015 at 4:01 PM, swygue wrote: >> Hello, >> >> I was giving foreman-docker a try today and hit this bug describe in the >> urls below. >> >> http://projects.theforeman.org/issues/9275 >> https://bugzilla.redhat.com/show_bug.cgi?id=1190059 >> https://github.com/theforeman/foreman-docker/pull/83 >> >> I'm new to docker, and it dawned on me that I do not know the purpose of the >> username and password field when setting up a Docker compute resource >> provider. Is this something I can enable on my docker host just like how I >> add the flags to enable the remote api? >> >> Thanks >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-users+unsubscribe@googlegroups.com. >> To post to this group, send email to foreman-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. > > > > -- > Daniel Lobato > > @elobatoss > blog.daniellobato.me > daniellobato.me > > GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


Daniel Lobato

@elobatoss


GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30

I've updated to the latest RPM build.

[root@foreman ~]# rpm -q --changelog ruby193-rubygem-foreman_docker

  • Tue Mar 03 2015 Daniel Lobato Garcia 1.2.1-1
  • Updating the version of foreman_docker to 1.2.1

But I'm still unable to connect to a remote docker host. Here's what I get
when I browse to /containers.

Excon::Errors::SocketError
Permission denied - connect(2) (Errno::EACCES)
app/models/concerns/foreman/thread_session.rb:33:in clear_thread' lib/middleware/catch_json_parse_errors.rb:9:incall'

I can connect to the docker host from foreman cli.

[root@foreman ~]# curl -X GET http://192.168.11.1:2375/images/json
{"Created":1420065207,"Id":"834629358fe214f210b0ed606fba2c17827d7a46dd74bd3309afc2a103ad0e89","ParentId":"00a0c78eeb6d81442efcd1d7c02e8b141745e3a06f1ee3458e1bae628e0067d3","RepoTags":["fedora:latest"],"Size":250170088,"VirtualSize":250170088}
,{"Created":1413016504,"Id":"cf9cabf614fe48b0a7ee45390d4739164295db6502294d8c12db8d8a6d2aa06a","ParentId":"50f48b8487d311ceeac142f1f6d9a359246d14370b5d4d99cd2bb91db4d815b9","RepoTags":["lonix/plex:latest"],"Size":1141,"VirtualSize":470985293}

Any tips on what's missing from my setup?

Thanks

··· On Sunday, March 1, 2015 at 2:58:13 AM UTC-5, Daniel Lobato wrote: > > By the way, 1.2.1 won't require the fields, as a fix for this [1] has > been merged into the main trunk. > We'll release it March 2nd or 3rd. > > https://github.com/theforeman/foreman-docker/pull/90 > > On Sun, Mar 1, 2015 at 9:20 AM, Daniel Lobato > wrote: > > Hi there, > > > > They are supposed to be the username and password you use to log in to > > the Docker hub. You need to run 'docker login' in the Docker host with > > these credentials first. Sorry for the lack of docs, we're working on > > it. > > > > Thanks! > > > > On Fri, Feb 27, 2015 at 4:01 PM, swygue <swy...@gmail.com > > wrote: > >> Hello, > >> > >> I was giving foreman-docker a try today and hit this bug describe in > the > >> urls below. > >> > >> http://projects.theforeman.org/issues/9275 > >> https://bugzilla.redhat.com/show_bug.cgi?id=1190059 > >> https://github.com/theforeman/foreman-docker/pull/83 > >> > >> I'm new to docker, and it dawned on me that I do not know the purpose > of the > >> username and password field when setting up a Docker compute resource > >> provider. Is this something I can enable on my docker host just like > how I > >> add the flags to enable the remote api? > >> > >> Thanks > >> > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Foreman users" group. > >> To unsubscribe from this group and stop receiving emails from it, send > an > >> email to foreman-user...@googlegroups.com . > >> To post to this group, send email to forema...@googlegroups.com > . > >> Visit this group at http://groups.google.com/group/foreman-users. > >> For more options, visit https://groups.google.com/d/optout. > > > > > > > > -- > > Daniel Lobato > > > > @elobatoss > > blog.daniellobato.me > > daniellobato.me > > > > GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30 > > > > -- > Daniel Lobato > > @elobatoss > blog.daniellobato.me > daniellobato.me > > GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30 >