{"action":"created","issue":{"url":"https://api.github.com/repos/sameersbn/docker-postgresql/issues/25","labels_url":"https://api.github.com/repos/sameersbn/docker-postgresql/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/sameersbn/docker-postgresql/issues/25/comments","events_url":"https://api.github.com/repos/sameersbn/docker-postgresql/issues/25/events","html_url":"https://github.com/sameersbn/docker-postgresql/issues/25","id":69095083,"number":25,"title":"chown: changing ownership of '/var/lib/postgresql': Permission denied","user":{"login":"lyongde","id":369124,"avatar_url":"https://avatars.githubusercontent.com/u/369124?v=3","gravatar_id":"","url":"https://api.github.com/users/lyongde","html_url":"https://github.com/lyongde","followers_url":"https://api.github.com/users/lyongde/followers","following_url":"https://api.github.com/users/lyongde/following{/other_user}","gists_url":"https://api.github.com/users/lyongde/gists{/gist_id}","starred_url":"https://api.github.com/users/lyongde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyongde/subscriptions","organizations_url":"https://api.github.com/users/lyongde/orgs","repos_url":"https://api.github.com/users/lyongde/repos","events_url":"https://api.github.com/users/lyongde/events{/privacy}","received_events_url":"https://api.github.com/users/lyongde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-17T08:32:51Z","updated_at":"2015-04-17T09:54:28Z","closed_at":null,"body":"docker-postgresql doesn't work in CentOS 7.\r\n\r\n#docker version\r\nClient version: 1.5.0-dev\r\nClient API version: 1.18\r\nGo version (client): go1.3.3\r\nGit commit (client): fc0329b/1.5.0\r\nOS/Arch (client): linux/amd64\r\nServer version: 1.5.0-dev\r\nServer API version: 1.18\r\nGo version (server): go1.3.3\r\nGit commit (server): fc0329b/1.5.0\r\nOS/Arch (server): linux/amd64\r\n\r\n#docker info\r\nContainers: 1\r\nImages: 41\r\nStorage Driver: devicemapper\r\n Pool Name: docker-253:1-273367750-pool\r\n Pool Blocksize: 65.54 kB\r\n Backing Filesystem: xfs\r\n Data file: /dev/loop0\r\n Metadata file: /dev/loop1\r\n Data Space Used: 1.213 GB\r\n Data Space Total: 107.4 GB\r\n Data Space Available: 99.64 GB\r\n Metadata Space Used: 2.294 MB\r\n Metadata Space Total: 2.147 GB\r\n Metadata Space Available: 2.145 GB\r\n Udev Sync Supported: true\r\n Data loop file: /var/lib/docker/devicemapper/devicemapper/data\r\n Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata\r\n Library Version: 1.02.93-RHEL7 (2015-01-28)\r\nExecution Driver: native-0.2\r\nKernel Version: 3.10.0-123.el7.x86_64\r\nOperating System: CentOS Linux 7 (Core)\r\nCPUs: 4\r\nTotal Memory: 3.631 GiB\r\nName: localhost.iginwa2\r\nID: 32ND:J7M7:PEKE:5BV4:PUFD:SQRZ:PEIY:ADCG:3FRS:T6RN:OTKF:TKEQ\r\n\r\n#docker run --name=gitlab_postgresql -d \\\r\n  -e 'DB_NAME=gitlabhq_production' \\\r\n  -e 'DB_USER=gitlab' \\\r\n  -e 'DB_PASS=password' \\\r\n  -v /opt/gitlab/postgresql:/var/lib/postgresql \\\r\n  sameersbn/postgresql:latest\r\n\r\n#docker logs gitlab_postgresql\r\nchown: changing ownership of '/var/lib/postgresql': Permission denied\r\n"},"comment":{"url":"https://api.github.com/repos/sameersbn/docker-postgresql/issues/comments/93955734","html_url":"https://github.com/sameersbn/docker-postgresql/issues/25#issuecomment-93955734","issue_url":"https://api.github.com/repos/sameersbn/docker-postgresql/issues/25","id":93955734,"user":{"login":"lyongde","id":369124,"avatar_url":"https://avatars.githubusercontent.com/u/369124?v=3","gravatar_id":"","url":"https://api.github.com/users/lyongde","html_url":"https://github.com/lyongde","followers_url":"https://api.github.com/users/lyongde/followers","following_url":"https://api.github.com/users/lyongde/following{/other_user}","gists_url":"https://api.github.com/users/lyongde/gists{/gist_id}","starred_url":"https://api.github.com/users/lyongde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyongde/subscriptions","organizations_url":"https://api.github.com/users/lyongde/orgs","repos_url":"https://api.github.com/users/lyongde/repos","events_url":"https://api.github.com/users/lyongde/events{/privacy}","received_events_url":"https://api.github.com/users/lyongde/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T09:54:28Z","updated_at":"2015-04-17T09:54:28Z","body":"thanks, I fix the issue follow https://github.com/sameersbn/docker-postgresql#data-store."}}