{"action":"created","issue":{"url":"https://api.github.com/repos/qoomon/docker-host/issues/7","repository_url":"https://api.github.com/repos/qoomon/docker-host","labels_url":"https://api.github.com/repos/qoomon/docker-host/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/qoomon/docker-host/issues/7/comments","events_url":"https://api.github.com/repos/qoomon/docker-host/issues/7/events","html_url":"https://github.com/qoomon/docker-host/issues/7","id":364542662,"node_id":"MDU6SXNzdWUzNjQ1NDI2NjI=","number":7,"title":"connecting to database on host","user":{"login":"xandriaw","id":10092106,"node_id":"MDQ6VXNlcjEwMDkyMTA2","avatar_url":"https://avatars1.githubusercontent.com/u/10092106?v=4","gravatar_id":"","url":"https://api.github.com/users/xandriaw","html_url":"https://github.com/xandriaw","followers_url":"https://api.github.com/users/xandriaw/followers","following_url":"https://api.github.com/users/xandriaw/following{/other_user}","gists_url":"https://api.github.com/users/xandriaw/gists{/gist_id}","starred_url":"https://api.github.com/users/xandriaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xandriaw/subscriptions","organizations_url":"https://api.github.com/users/xandriaw/orgs","repos_url":"https://api.github.com/users/xandriaw/repos","events_url":"https://api.github.com/users/xandriaw/events{/privacy}","received_events_url":"https://api.github.com/users/xandriaw/received_events","type":"User","site_admin":false},"labels":[{"id":725796241,"node_id":"MDU6TGFiZWw3MjU3OTYyNDE=","url":"https://api.github.com/repos/qoomon/docker-host/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-09-27T15:52:35Z","updated_at":"2018-10-05T14:02:38Z","closed_at":null,"author_association":"NONE","body":"Should this work for connecting to a database on the host?\r\nI have a mysql db on my host. When i run your container I am able to ping the \"dockerhost\" from my other containers. But when I go to connect to the database, I get an error. I'm using R, so it's fine if you're not familiar with the program.\r\n\r\ncommand line:\r\n```\r\nroot@3fb860760a17:/# ping dockerhost\r\nPING dockerhost (172.18.0.3): 56 data bytes\r\n64 bytes from 172.18.0.3: icmp_seq=0 ttl=64 time=0.178 ms\r\n```\r\nin R:\r\n```\r\n> DB<-dbConnect(MySQL(), user = 'buko-user', password ='buko-access',\r\n+                 dbname = 'buko', host = '172.18.0.3')\r\nError in .local(drv, ...) : \r\n  Failed to connect to database: Error: Can't connect to MySQL server on '172.18.0.3' (107)\r\n```"},"comment":{"url":"https://api.github.com/repos/qoomon/docker-host/issues/comments/427376630","html_url":"https://github.com/qoomon/docker-host/issues/7#issuecomment-427376630","issue_url":"https://api.github.com/repos/qoomon/docker-host/issues/7","id":427376630,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzM3NjYzMA==","user":{"login":"xandriaw","id":10092106,"node_id":"MDQ6VXNlcjEwMDkyMTA2","avatar_url":"https://avatars1.githubusercontent.com/u/10092106?v=4","gravatar_id":"","url":"https://api.github.com/users/xandriaw","html_url":"https://github.com/xandriaw","followers_url":"https://api.github.com/users/xandriaw/followers","following_url":"https://api.github.com/users/xandriaw/following{/other_user}","gists_url":"https://api.github.com/users/xandriaw/gists{/gist_id}","starred_url":"https://api.github.com/users/xandriaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xandriaw/subscriptions","organizations_url":"https://api.github.com/users/xandriaw/orgs","repos_url":"https://api.github.com/users/xandriaw/repos","events_url":"https://api.github.com/users/xandriaw/events{/privacy}","received_events_url":"https://api.github.com/users/xandriaw/received_events","type":"User","site_admin":false},"created_at":"2018-10-05T14:02:38Z","updated_at":"2018-10-05T14:02:38Z","author_association":"NONE","body":"Next week I may have time to test. I'm a consultant so I'm not paid for\nextra work. 😒\n\nOn Fri, Oct 5, 2018, 10:01 AM Bengt Brodersen <notifications@github.com>\nwrote:\n\n> Could you test it anyway?\n>\n> On Fri, 5 Oct 2018, 15:57 Xandria, <notifications@github.com> wrote:\n>\n> > Sorry for the delay on this! We decided to move the database to a\n> different\n> > server and we don't have to deal with this problem anymore.\n> >\n> >\n> > On Fri, Sep 28, 2018, 4:15 AM Bengt Brodersen <notifications@github.com>\n> > wrote:\n> >\n> > > I tested it on my machine with following commands. Can you run them on\n> > > your machine and tell me if it worked?\n> > >\n> > > Run those in different shells.\n> > >\n> > > # start mysql server bin port to local host\n> > > docker run -it --rm \\\n> > > -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root \\\n> > > mysql\n> > > # start docker-host\n> > > docker run -it --rm --name 'dockerhost' \\\n> > > --cap-add=NET_ADMIN --cap-add=NET_RAW \\\n> > > qoomon/docker-host\n> > > # mysql client connect to mysql server through 'dockerhost' container\n> > > docker run -it --rm --link 'dockerhost' \\\n> > > mysql mysql -h'dockerhost' -u'root' -p'root'\n> > >\n> > > —\n> > > You are receiving this because you authored the thread.\n> > > Reply to this email directly, view it on GitHub\n> > > <https://github.com/qoomon/docker-host/issues/7#issuecomment-425359052\n> >,\n> > > or mute the thread\n> > > <\n> >\n> https://github.com/notifications/unsubscribe-auth/AJn-SleEgBXrHjtZ5inetiFFN469k646ks5ufdq7gaJpZM4W89ig\n> > >\n> > > .\n> > >\n> >\n> > —\n> > You are receiving this because you commented.\n> > Reply to this email directly, view it on GitHub\n> > <https://github.com/qoomon/docker-host/issues/7#issuecomment-427374917>,\n> > or mute the thread\n> > <\n> https://github.com/notifications/unsubscribe-auth/ADx6ApV1ZldbeHc1hF2v2rIlv3LWimUSks5uh2U8gaJpZM4W89ig\n> >\n> > .\n> >\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/qoomon/docker-host/issues/7#issuecomment-427376145>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AJn-ShTQb4pNvLso9Nue8dmD6m-XRxX5ks5uh2YogaJpZM4W89ig>\n> .\n>\n"}}
{"actor":{"display_login":"xandriaw"}}