sameersbn / sameersbn/docker-gitlab
Permission Denied when starting postgres or redis. Docker 1.7.1
Open
Nobody has claimed this yet.
wontfix
- Dominant language
- Shell
- Stars
- 8.1k
- Forks
- 2.1k
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 7
Description
# docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d/1.7.1
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d/1.7.1
OS/Arch (server): linux/amd64
# docker info
Containers: 0
Images: 0
Storage Driver: devicemapper
Pool Name: docker-253:0-9214-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: extfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 305.7 MB
Data Space Total: 107.4 GB
Data Space Available: 5.47 GB
Metadata Space Used: 733.2 kB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.147 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.95-RHEL6 (2015-09-08)
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 2.6.32-573.18.1.el6.x86_64
Operating System: <unknown>
CPUs: 2
Total Memory: 3.739 GiB
Name: gitlabp01
ID: AX2Y:DOAT:7Z5Z:S5BA:PQ4L:JUCG:JY7Q:NUZN:B2QJ:3YLC:3E2I:SMMN
Http Proxy: http://redacted
Https Proxy: http://redacted
# docker run --name gitlab-postgresql -d \
> --env 'DB_NAME=gitlabhq_production' \
> --env 'DB_USER=gitlab' --env 'DB_PASS=password' \
> --volume /srv/docker/gitlab/postgresql:/var/lib/postgresql \
> sameersbn/postgresql:9.4-12
Unable to find image 'sameersbn/postgresql:9.4-12' locally
9.4-12: Pulling from sameersbn/postgresql
f15ce52fc004: Pull complete
c4fae638e7ce: Pull complete
a4c5be5b6e59: Pull complete
8693db7e8a00: Pull complete
3b7c004c6935: Pull complete
5386a9b997b6: Pull complete
5ff1abd2e8e6: Pull complete
ce0e5651fc79: Pull complete
5ab7dfa2e475: Pull complete
66781e6063ac: Pull complete
322c184f9e0b: Pull complete
debf6072bb03: Pull complete
d0a24490799c: Pull complete
2182f5f1b775: Pull complete
42ef0c2124f0: Pull complete
967bc87bd71a: Pull complete
5991c7c804bb: Pull complete
Digest: sha256:05227ee56e789cc38db3f2882bf1e0beb138785e9de1634b4b25c3d238c9536d
Status: Downloaded newer image for sameersbn/postgresql:9.4-12
0dea464f5e94ff7e8d7b9e1c01ba34b1cf16fc65f3696e2c74a7f19b3e73ac35
[root@bpsgitlabp01 awdmw]# docker logs 0dea464f5e94ff7e8d7b9e1c01ba34b1cf16fc65f3696e2c74a7f19b3e73ac35
Initializing datadir...
Initializing certdir...
Initializing logdir...
Initializing rundir...
Setting resolv ACLs...
Initializing database...
sudo: unable to execute /usr/lib/postgresql/9.4/bin/initdb: Permission denied
I 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported docker run on Docker 1.7.1 and inspect the container logs around initdb, using the versions and storage details in the report. There is no repository file or test named; done would be identifying the cause of the permission failure and documenting or validating a compatible fix or workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, postgresql, redis
- Domain
- databases, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100