Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Postgres container fails with "permission denied" #1

Closed
undecaf opened this issue Jul 21, 2019 · 2 comments
Closed

Running Postgres container fails with "permission denied" #1

undecaf opened this issue Jul 21, 2019 · 2 comments

Comments

@undecaf
Copy link

undecaf commented Jul 21, 2019

First of all, thank you for providing all these containers!

I am trying to run a Postgres container as show in the docs:

docker run --name some-postgres -e POSTGRES_PASSWORD=RaNd0MpA55W0Rd -d yobasystems/alpine-postgres

Regrettably, the container does not start but an error message appears and the container remains in created state:

docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"/docker-entrypoint.sh\": permission denied": unknown.

The pulled image appears to be exceptionally small:

REPOSITORY                              TAG          IMAGE ID       CREATED        SIZE
docker.io/yobasystems/alpine-postgres   latest       03b06f0349f3   4 months ago   33.7 MB

Trying Podman with identical arguments results in the same error.

Running docker info shows:

Containers: 2
 Running: 1
 Paused: 0
 Stopped: 1
Images: 2
Server Version: 18.09.8
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 9
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: bb71b10fd8f58240ca47fbb579b9d1028eea7c84
runc version: 2b18fe1d885ee5083ef9f0838fee39b62d653e30
init version: fec3683
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.18.0-25-generic
Operating System: Ubuntu 18.04.2 LTS
OSType: linux
Architecture: x86_64
CPUs: 16
Total Memory: 47.15GiB
Name: poseidon
ID: BJNH:CSOA:ZIPL:VA6X:AL6J:OVZV:GX6U:XPUW:CEPZ:HTWJ:JLMU:S52A
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
@christidis
Copy link

christidis commented Dec 3, 2020

I am facing this issue on 18.09.8 + aufs but not on overlay2. Update. This fails on overlay2 as well.

@mzramna
Copy link

mzramna commented Jul 7, 2021

just add gosu to the packages and give an chmod +x into the docker-entrypoint.sh file and it solves to me

gosu you adds like this:
https://github.com/tianon/gosu/blob/master/INSTALL.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants