{"action":"created","issue":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/606","repository_url":"https://api.github.com/repos/sameersbn/docker-gitlab","labels_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/606/labels{/name}","comments_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/606/comments","events_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/606/events","html_url":"https://github.com/sameersbn/docker-gitlab/issues/606","id":134117496,"number":606,"title":"Permission Denied when starting postgres or redis. Docker 1.7.1","user":{"login":"cashman04","id":9488646,"avatar_url":"https://avatars.githubusercontent.com/u/9488646?v=3","gravatar_id":"","url":"https://api.github.com/users/cashman04","html_url":"https://github.com/cashman04","followers_url":"https://api.github.com/users/cashman04/followers","following_url":"https://api.github.com/users/cashman04/following{/other_user}","gists_url":"https://api.github.com/users/cashman04/gists{/gist_id}","starred_url":"https://api.github.com/users/cashman04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cashman04/subscriptions","organizations_url":"https://api.github.com/users/cashman04/orgs","repos_url":"https://api.github.com/users/cashman04/repos","events_url":"https://api.github.com/users/cashman04/events{/privacy}","received_events_url":"https://api.github.com/users/cashman04/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-16T22:44:08Z","updated_at":"2016-04-11T04:31:50Z","closed_at":null,"body":"```\r\n# docker version\r\nClient version: 1.7.1\r\nClient API version: 1.19\r\nGo version (client): go1.4.2\r\nGit commit (client): 786b29d/1.7.1\r\nOS/Arch (client): linux/amd64\r\nServer version: 1.7.1\r\nServer API version: 1.19\r\nGo version (server): go1.4.2\r\nGit commit (server): 786b29d/1.7.1\r\nOS/Arch (server): linux/amd64\r\n# docker info\r\nContainers: 0\r\nImages: 0\r\nStorage Driver: devicemapper\r\n Pool Name: docker-253:0-9214-pool\r\n Pool Blocksize: 65.54 kB\r\n Backing Filesystem: extfs\r\n Data file: /dev/loop0\r\n Metadata file: /dev/loop1\r\n Data Space Used: 305.7 MB\r\n Data Space Total: 107.4 GB\r\n Data Space Available: 5.47 GB\r\n Metadata Space Used: 733.2 kB\r\n Metadata Space Total: 2.147 GB\r\n Metadata Space Available: 2.147 GB\r\n Udev Sync Supported: true\r\n Deferred Removal Enabled: false\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.95-RHEL6 (2015-09-08)\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nKernel Version: 2.6.32-573.18.1.el6.x86_64\r\nOperating System: <unknown>\r\nCPUs: 2\r\nTotal Memory: 3.739 GiB\r\nName: gitlabp01\r\nID: AX2Y:DOAT:7Z5Z:S5BA:PQ4L:JUCG:JY7Q:NUZN:B2QJ:3YLC:3E2I:SMMN\r\nHttp Proxy: http://redacted\r\nHttps Proxy: http://redacted\r\n# docker run --name gitlab-postgresql -d \\\r\n>     --env 'DB_NAME=gitlabhq_production' \\\r\n>     --env 'DB_USER=gitlab' --env 'DB_PASS=password' \\\r\n>     --volume /srv/docker/gitlab/postgresql:/var/lib/postgresql \\\r\n>     sameersbn/postgresql:9.4-12\r\nUnable to find image 'sameersbn/postgresql:9.4-12' locally\r\n9.4-12: Pulling from sameersbn/postgresql\r\n\r\nf15ce52fc004: Pull complete\r\nc4fae638e7ce: Pull complete\r\na4c5be5b6e59: Pull complete\r\n8693db7e8a00: Pull complete\r\n3b7c004c6935: Pull complete\r\n5386a9b997b6: Pull complete\r\n5ff1abd2e8e6: Pull complete\r\nce0e5651fc79: Pull complete\r\n5ab7dfa2e475: Pull complete\r\n66781e6063ac: Pull complete\r\n322c184f9e0b: Pull complete\r\ndebf6072bb03: Pull complete\r\nd0a24490799c: Pull complete\r\n2182f5f1b775: Pull complete\r\n42ef0c2124f0: Pull complete\r\n967bc87bd71a: Pull complete\r\n5991c7c804bb: Pull complete\r\nDigest: sha256:05227ee56e789cc38db3f2882bf1e0beb138785e9de1634b4b25c3d238c9536d\r\nStatus: Downloaded newer image for sameersbn/postgresql:9.4-12\r\n0dea464f5e94ff7e8d7b9e1c01ba34b1cf16fc65f3696e2c74a7f19b3e73ac35\r\n[root@bpsgitlabp01 awdmw]# docker logs 0dea464f5e94ff7e8d7b9e1c01ba34b1cf16fc65f3696e2c74a7f19b3e73ac35\r\nInitializing datadir...\r\nInitializing certdir...\r\nInitializing logdir...\r\nInitializing rundir...\r\nSetting resolv ACLs...\r\nInitializing database...\r\nsudo: unable to execute /usr/lib/postgresql/9.4/bin/initdb: Permission denied\r\n```\r\n\r\nI have a feeling this is due to using an older version. But it is a miracle I was able to even get docker 1.7.1 installed where I work.  There is no way(for the next few months) that I'll be able to run on a newer version."},"comment":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/comments/208159905","html_url":"https://github.com/sameersbn/docker-gitlab/issues/606#issuecomment-208159905","issue_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/606","id":208159905,"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":"2016-04-11T04:31:50Z","updated_at":"2016-04-11T04:31:50Z","body":"@cashman04  @geeknam I believe the image must have got corrupted during the download (happens quite often). I would suggest removing the image and repulling from the docker hub. You may also want to try downloading the most recent version.\r\n\r\n```\r\ndocker pull sameersbn/postgresql:9.4-18\r\n```\r\n\r\n"}}