{"action":"created","issue":{"url":"https://api.github.com/repos/sameersbn/docker-postgresql/issues/36","labels_url":"https://api.github.com/repos/sameersbn/docker-postgresql/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/sameersbn/docker-postgresql/issues/36/comments","events_url":"https://api.github.com/repos/sameersbn/docker-postgresql/issues/36/events","html_url":"https://github.com/sameersbn/docker-postgresql/pull/36","id":95900546,"number":36,"title":"start: maybe change DSM config in postgresql.conf","user":{"login":"timclassic","id":134319,"avatar_url":"https://avatars.githubusercontent.com/u/134319?v=3","gravatar_id":"","url":"https://api.github.com/users/timclassic","html_url":"https://github.com/timclassic","followers_url":"https://api.github.com/users/timclassic/followers","following_url":"https://api.github.com/users/timclassic/following{/other_user}","gists_url":"https://api.github.com/users/timclassic/gists{/gist_id}","starred_url":"https://api.github.com/users/timclassic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timclassic/subscriptions","organizations_url":"https://api.github.com/users/timclassic/orgs","repos_url":"https://api.github.com/users/timclassic/repos","events_url":"https://api.github.com/users/timclassic/events{/privacy}","received_events_url":"https://api.github.com/users/timclassic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-19T09:14:25Z","updated_at":"2015-07-19T16:54:16Z","closed_at":"2015-07-19T16:49:09Z","pull_request":{"url":"https://api.github.com/repos/sameersbn/docker-postgresql/pulls/36","html_url":"https://github.com/sameersbn/docker-postgresql/pull/36","diff_url":"https://github.com/sameersbn/docker-postgresql/pull/36.diff","patch_url":"https://github.com/sameersbn/docker-postgresql/pull/36.patch"},"body":"I attempted to deploy docker-postgresql into Joyent's Triton service and ran into the following error:\r\n```\r\nFATAL: could not open shared memory segment \"/PostgreSQL.1804289383\": Permission denied\r\n```\r\nI tracked this to the fact that `dynamic_shared_memory_type` is set to `posix` by default.  I don't know how pervasive this problem is, but my patch is specific to lx-branded zones on SmartOS.\r\n\r\nOnce this change was made, I was able to deploy the container and start the database."},"comment":{"url":"https://api.github.com/repos/sameersbn/docker-postgresql/issues/comments/122682120","html_url":"https://github.com/sameersbn/docker-postgresql/pull/36#issuecomment-122682120","issue_url":"https://api.github.com/repos/sameersbn/docker-postgresql/issues/36","id":122682120,"user":{"login":"sameersbn","id":410147,"avatar_url":"https://avatars.githubusercontent.com/u/410147?v=3","gravatar_id":"","url":"https://api.github.com/users/sameersbn","html_url":"https://github.com/sameersbn","followers_url":"https://api.github.com/users/sameersbn/followers","following_url":"https://api.github.com/users/sameersbn/following{/other_user}","gists_url":"https://api.github.com/users/sameersbn/gists{/gist_id}","starred_url":"https://api.github.com/users/sameersbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sameersbn/subscriptions","organizations_url":"https://api.github.com/users/sameersbn/orgs","repos_url":"https://api.github.com/users/sameersbn/repos","events_url":"https://api.github.com/users/sameersbn/events{/privacy}","received_events_url":"https://api.github.com/users/sameersbn/received_events","type":"User","site_admin":false},"created_at":"2015-07-19T16:54:16Z","updated_at":"2015-07-19T16:54:16Z","body":"@timclassic I have merged the PR. However can you check if `/dev/shm` is mounted in the postgresql container? On my host\r\n\r\n```bash\r\ncat /proc/mounts | grep shm\r\nshm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=65536k 0 0\r\n```\r\n\r\nIf this is related to the fact that `/dev/shm` is not mounted inside the container, then maybe we can change the condition to check whether `/dev/shm` is mounted."}}