{"action":"closed","issue":{"url":"https://api.github.com/repos/codenvy/che/issues/269","repository_url":"https://api.github.com/repos/codenvy/che","labels_url":"https://api.github.com/repos/codenvy/che/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/codenvy/che/issues/269/comments","events_url":"https://api.github.com/repos/codenvy/che/issues/269/events","html_url":"https://github.com/codenvy/che/issues/269","id":131553555,"number":269,"title":"Documentation for running Che using docker-compose + potentially nginx-proxy & on carina","user":{"login":"DanTheColoradan","id":3826143,"avatar_url":"https://avatars.githubusercontent.com/u/3826143?v=3","gravatar_id":"","url":"https://api.github.com/users/DanTheColoradan","html_url":"https://github.com/DanTheColoradan","followers_url":"https://api.github.com/users/DanTheColoradan/followers","following_url":"https://api.github.com/users/DanTheColoradan/following{/other_user}","gists_url":"https://api.github.com/users/DanTheColoradan/gists{/gist_id}","starred_url":"https://api.github.com/users/DanTheColoradan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanTheColoradan/subscriptions","organizations_url":"https://api.github.com/users/DanTheColoradan/orgs","repos_url":"https://api.github.com/users/DanTheColoradan/repos","events_url":"https://api.github.com/users/DanTheColoradan/events{/privacy}","received_events_url":"https://api.github.com/users/DanTheColoradan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/codenvy/che/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2016-02-05T04:39:25Z","updated_at":"2016-02-09T02:56:53Z","closed_at":"2016-02-09T02:56:53Z","body":"Background: I'm trying to run Che on [Carina](getcarina.com). I'm also using nginx-proxy, but that's important for #238.\r\nProblem: I can't create a new workspace.\r\n\r\nI have the following docker-compose.yml:\r\n```yml\r\nche_app:\r\n  image: \"codenvy/che:no_dnd\"\r\n  restart: \"always\"\r\n  environment:\r\n    - \"VIRTUAL_HOST=sub.yourdomain.org\"\r\n    - \"VIRTUAL_PORT=8080\"\r\n    - \"TZ=America/Mountains\"\r\n  volumes:\r\n    - \"/var/run/docker.sock:/var/run/docker.sock\"\r\n  volumes_from:\r\n    - \"che_data\"\r\n\r\nche_data:\r\n  image: \"codenvy/che:no_dnd\"\r\n  environment:\r\n    - \"TZ=America/Mountains\"\r\n  volumes:\r\n    - \"/home/user/che/lib-copy\"\r\n    - \"/home/user/che/workspaces\"\r\n    - \"/home/user/che/tomcat/temp/local-storage\"\r\n  entrypoint: \"true\"\r\n```\r\nThe trouble is I'm seeing `[ERROR] org.eclipse.che.plugin.docker.client.DockerException: Error response from docker API, status: 500, message: Cannot start container a9ab4a017b3f7a68dc952eb7440cb964af60900a42ef620e86110368ca7b0c1a: [8] System error: permission denied`.\r\n\r\nI'm guessing the problem is that by leaving `DOCKER_MACHINE_HOST` as localhost, Che is unable to get permission to spin up new containers.\r\n\r\nI'm considering (and briefly tried a few combinations of):\r\n  - adding `net: \"host\"`\r\n  - adding `pid: \"host\"`\r\n  - `sed -e \"s/HOSTIP/$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' swarm-manager)/g\" docker-compose.yml | docker-compose --file - u`\r\n\r\nAnd suggestions as to how to get past `permission denied` would be greatly appreciated. I'll post anything I figure out.\r\n\r\nSpun out of #257.\r\nI release all rights to the following information (i.e. feel free to use it in the docs if it's useful and correct). I'm not a pro though so take what I say and double check it's true."}}