{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/19351","labels_url":"https://api.github.com/repos/docker/docker/issues/19351/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/19351/comments","events_url":"https://api.github.com/repos/docker/docker/issues/19351/events","html_url":"https://github.com/docker/docker/issues/19351","id":126792539,"number":19351,"title":"missing privilege separation directory /var/run/sshd","user":{"login":"vklonghml","id":2854574,"avatar_url":"https://avatars.githubusercontent.com/u/2854574?v=3","gravatar_id":"","url":"https://api.github.com/users/vklonghml","html_url":"https://github.com/vklonghml","followers_url":"https://api.github.com/users/vklonghml/followers","following_url":"https://api.github.com/users/vklonghml/following{/other_user}","gists_url":"https://api.github.com/users/vklonghml/gists{/gist_id}","starred_url":"https://api.github.com/users/vklonghml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vklonghml/subscriptions","organizations_url":"https://api.github.com/users/vklonghml/orgs","repos_url":"https://api.github.com/users/vklonghml/repos","events_url":"https://api.github.com/users/vklonghml/events{/privacy}","received_events_url":"https://api.github.com/users/vklonghml/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-15T02:09:53Z","updated_at":"2016-01-18T07:26:55Z","closed_at":"2016-01-18T07:26:55Z","body":"Hi,all\r\nDoes anybody have ever such a problem when run a docker container without \"/bin/bash\"\r\n\r\nhere is my environment:\r\nClient:\r\n Version:      1.9.1\r\n API version:  1.21\r\n Go version:   go1.4.2\r\n Git commit:   a34a1d5\r\n Built:        Fri Nov 20 13:12:04 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.9.1\r\n API version:  1.21\r\n Go version:   go1.4.2\r\n Git commit:   a34a1d5\r\n Built:        Fri Nov 20 13:12:04 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\nthe image i using is created from Dockerfile, it looks like that:\r\nFROM scratch\r\nADD . /\r\nENV PATH=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"\r\nRUN rm Dockerfile\r\nCMD /usr/sbin/sshd -D\r\n\r\nand i download a rootfs by using cmd \"debootstrap --variant=minbase --include=openssh-server  --arch i386 trusty /mnt\", and copy the Dockerfile into the /mnt, then use cmd \"docker build -t mytrusty /mnt\" to make a new image.\r\nat last, when i run a docker container with cmd \"docker run -it mytrustry\", and came out a problem:\r\nmissing privilege separation directory /var/run/sshd; \r\n\r\ni have installed the sshd in the rootfs, how does that problem come out.\r\nthanks!\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/172449666","html_url":"https://github.com/docker/docker/issues/19351#issuecomment-172449666","issue_url":"https://api.github.com/repos/docker/docker/issues/19351","id":172449666,"user":{"login":"unclejack","id":1409668,"avatar_url":"https://avatars.githubusercontent.com/u/1409668?v=3","gravatar_id":"","url":"https://api.github.com/users/unclejack","html_url":"https://github.com/unclejack","followers_url":"https://api.github.com/users/unclejack/followers","following_url":"https://api.github.com/users/unclejack/following{/other_user}","gists_url":"https://api.github.com/users/unclejack/gists{/gist_id}","starred_url":"https://api.github.com/users/unclejack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unclejack/subscriptions","organizations_url":"https://api.github.com/users/unclejack/orgs","repos_url":"https://api.github.com/users/unclejack/repos","events_url":"https://api.github.com/users/unclejack/events{/privacy}","received_events_url":"https://api.github.com/users/unclejack/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T07:26:55Z","updated_at":"2016-01-18T07:26:55Z","body":"As @thaJeztah has stated above, this can be fixed quite easily by running a tiny script before launching sshd.\r\n\r\nThis isn't a Docker bug. It's just something related to a particular piece of software to be run in Docker.\r\n\r\nPlease keep in mind this issue tracker is dedicated to tracking bugs, proposals and pull requests to make changes to Docker; it's not a general support forum.\r\n\r\nThis kind of question and general support questions are more adequate for the following:\r\n1) the forums: https://forums.docker.com/\r\n2) the docker-user mailing list https://groups.google.com/forum/#!forum/docker-user\r\n3) the #docker channel on Freenode.\r\n4) StackOverflow https://stackoverflow.com/questions/tagged/docker\r\n\r\nI'm going to close this issue now because a solution has been provided. Please feel free to continue the discussion. There's no need to open a new issue on this topic."}}