{"action":"created","issue":{"url":"https://api.github.com/repos/cockroachdb/docs/issues/311","repository_url":"https://api.github.com/repos/cockroachdb/docs","labels_url":"https://api.github.com/repos/cockroachdb/docs/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/cockroachdb/docs/issues/311/comments","events_url":"https://api.github.com/repos/cockroachdb/docs/issues/311/events","html_url":"https://github.com/cockroachdb/docs/issues/311","id":156175872,"number":311,"title":"Don't use --background flag with docker","user":{"login":"jseldess","id":15893490,"avatar_url":"https://avatars.githubusercontent.com/u/15893490?v=3","gravatar_id":"","url":"https://api.github.com/users/jseldess","html_url":"https://github.com/jseldess","followers_url":"https://api.github.com/users/jseldess/followers","following_url":"https://api.github.com/users/jseldess/following{/other_user}","gists_url":"https://api.github.com/users/jseldess/gists{/gist_id}","starred_url":"https://api.github.com/users/jseldess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jseldess/subscriptions","organizations_url":"https://api.github.com/users/jseldess/orgs","repos_url":"https://api.github.com/users/jseldess/repos","events_url":"https://api.github.com/users/jseldess/events{/privacy}","received_events_url":"https://api.github.com/users/jseldess/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cockroachdb/docs/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/cockroachdb/docs/milestones/2","html_url":"https://github.com/cockroachdb/docs/milestones/Q2","labels_url":"https://api.github.com/repos/cockroachdb/docs/milestones/2/labels","id":1687873,"number":2,"title":"Q2","description":"","creator":{"login":"jseldess","id":15893490,"avatar_url":"https://avatars.githubusercontent.com/u/15893490?v=3","gravatar_id":"","url":"https://api.github.com/users/jseldess","html_url":"https://github.com/jseldess","followers_url":"https://api.github.com/users/jseldess/followers","following_url":"https://api.github.com/users/jseldess/following{/other_user}","gists_url":"https://api.github.com/users/jseldess/gists{/gist_id}","starred_url":"https://api.github.com/users/jseldess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jseldess/subscriptions","organizations_url":"https://api.github.com/users/jseldess/orgs","repos_url":"https://api.github.com/users/jseldess/repos","events_url":"https://api.github.com/users/jseldess/events{/privacy}","received_events_url":"https://api.github.com/users/jseldess/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":35,"state":"open","created_at":"2016-04-06T17:46:54Z","updated_at":"2016-07-01T18:49:03Z","due_on":"2016-06-30T04:00:00Z","closed_at":null},"comments":16,"created_at":"2016-05-22T22:02:55Z","updated_at":"2016-07-06T16:08:58Z","closed_at":"2016-06-17T16:12:17Z","body":"From Gitter:\r\n\r\nMichael Hausenblas @mhausenblas\r\nyo, folks, anyone an idea why docker run cockroachdb/cockroach:beta-20160519 start --background is dying on me?\r\nFWIW, I experience the same when I build it from scratch like so:\r\n\r\n```\r\n FROM ubuntu:14.04\r\nMAINTAINER Michael Hausenblas \"michael.hausenblas@gmail.com\"\r\nENV REFRESHED_AT 2016-05-22T07:37Z\r\n\r\nRUN    apt-get -qq update \\ \r\n    && apt-get -f install \\\r\n    && apt-get -y install wget \\\r\n    && wget https://binaries.cockroachdb.com/cockroach-beta-20160519.linux-amd64.tgz \\\r\n    && tar xfz cockroach-beta-20160519.linux-amd64.tgz\r\n\r\nEXPOSE 8080\r\nENTRYPOINT [\"cockroach-beta-20160519.linux-amd64/cockroach\"]\r\nCMD [\"start\", \"--background\"]\r\n```\r\n\r\nFunnily enough, when I start out with a ubuntu:14.04 image and do the steps manually, it works 8->\r\n\r\nBen Darnell @bdarnell 05:56\r\n@mhausenblas Don’t use —background when running under docker (or systemd, or anything else that’s going to monitor the process). —background is just for starting from a plain shell\r\n\r\nMichael Hausenblas @mhausenblas 05:56\r\ngot it, thanks @bdarnell!\r\nmight wanna make this explicit in the docs? also, adding the Dockerfile in https://hub.docker.com/r/cockroachdb/cockroach/ might help\r\nor did I fail RTFMing? \r\n\r\nBen Darnell @bdarnell 06:02\r\nno, we don’t have good docs for running in docker right now. we still need to sort out the best way to manage volumes, ports, etc\r\nwe recommend running without docker for now\r\nalso, i understand that we need to document that you should run docker run cockroachdb/cockroach start instead of start —background, but how does putting the Dockerfile on hub.docker.com help? the Dockerfile is all implementation details, not instructions"},"comment":{"url":"https://api.github.com/repos/cockroachdb/docs/issues/comments/230821328","html_url":"https://github.com/cockroachdb/docs/issues/311#issuecomment-230821328","issue_url":"https://api.github.com/repos/cockroachdb/docs/issues/311","id":230821328,"user":{"login":"jseldess","id":15893490,"avatar_url":"https://avatars.githubusercontent.com/u/15893490?v=3","gravatar_id":"","url":"https://api.github.com/users/jseldess","html_url":"https://github.com/jseldess","followers_url":"https://api.github.com/users/jseldess/followers","following_url":"https://api.github.com/users/jseldess/following{/other_user}","gists_url":"https://api.github.com/users/jseldess/gists{/gist_id}","starred_url":"https://api.github.com/users/jseldess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jseldess/subscriptions","organizations_url":"https://api.github.com/users/jseldess/orgs","repos_url":"https://api.github.com/users/jseldess/repos","events_url":"https://api.github.com/users/jseldess/events{/privacy}","received_events_url":"https://api.github.com/users/jseldess/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T16:08:58Z","updated_at":"2016-07-06T16:08:58Z","body":"Added to forum: https://forum.cockroachlabs.com/t/background-flag-not-working-with-docker/51/2"}}
{"actor":{"display_login":"jseldess"}}