Comments (9)
Why is this closed? I just received this running "sudo docker run -i --name simplretl --cpus 2 -p 5432:5432 -e POSTGRES_PASSWORD=**** -e POSTGRES_USER=**** postgres"
from postgres.
Is your local script executable? "chmod +x docker-entrypoint.sh"
from postgres.
already tried it.
Thomas Romera
5ème année Epitech Paris
[1]http://thomas-romera.com
Le Mar 16 sept. 2014, à 19:23, Tianon Gravi a écrit :
Is your local script executable? "chmod +x
docker-entrypoint.sh"
—
Reply to this email directly or [2]view it on GitHub.
References
from postgres.
Then we're definitely going to need a lot more information about the files you've got. Where'd they come from? I see they aren't from a git clone
of this repo (at least not obviously), so I'm curious how they got where they are, and what you are expecting of them. Can you put them together in a gist so we can better see what's going on?
from postgres.
Hi
I have the same problem.
I have just tried to build and run the files from https://github.com/docker-library/postgres/tree/4603177ae330d135dea953b42aec28fe1eef514e/9.3
Error response from daemon: Cannot start container 4b5492eb090186f14a5451040496fe2eb63a1e719f2c64a823ad995047ba681f: exec: "/docker-entrypoint.sh": permission denied
from postgres.
Did you clone the repo or did you just download the files? The docker-entrypoint.sh
will need a chmod +x
before you build it, if you just downloaded them.
from postgres.
Unable to reproduce. Closing. (feel free to post if more information is found to reproduce)
from postgres.
@asevans48 as @yosifkit pointed out above (no less than 3 years ago now), we cannot reproduce a failure:
$ docker pull postgres
Using default tag: latest
latest: Pulling from library/postgres
Digest: sha256:3f4441460029e12905a5d447a3549ae2ac13323d045391b0cb0cf8b48ea17463
Status: Downloaded newer image for postgres:latest
$ docker run -it --rm --cpus 2 -p 5432:5432 -e POSTGRES_PASSWORD='xxx' -e POSTGRES_USER='yyy' postgres
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok
WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.
Success. You can now start the database server using:
pg_ctl -D /var/lib/postgresql/data -l logfile start
waiting for server to start....2018-01-09 17:48:38.390 UTC [39] LOG: listening on IPv4 address "127.0.0.1", port 5432
2018-01-09 17:48:38.390 UTC [39] LOG: could not bind IPv6 address "::1": Cannot assign requested address
2018-01-09 17:48:38.390 UTC [39] HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2018-01-09 17:48:38.392 UTC [39] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2018-01-09 17:48:38.400 UTC [40] LOG: database system was shut down at 2018-01-09 17:48:38 UTC
2018-01-09 17:48:38.403 UTC [39] LOG: database system is ready to accept connections
done
server started
CREATE DATABASE
CREATE ROLE
/usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
2018-01-09 17:48:38.895 UTC [39] LOG: received fast shutdown request
waiting for server to shut down....2018-01-09 17:48:38.897 UTC [39] LOG: aborting any active transactions
2018-01-09 17:48:38.898 UTC [39] LOG: worker process: logical replication launcher (PID 46) exited with exit code 1
2018-01-09 17:48:38.898 UTC [41] LOG: shutting down
2018-01-09 17:48:38.911 UTC [39] LOG: database system is shut down
done
server stopped
PostgreSQL init process complete; ready for start up.
2018-01-09 17:48:39.023 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2018-01-09 17:48:39.023 UTC [1] LOG: listening on IPv6 address "::", port 5432
2018-01-09 17:48:39.026 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2018-01-09 17:48:39.041 UTC [66] LOG: database system was shut down at 2018-01-09 17:48:38 UTC
2018-01-09 17:48:39.045 UTC [1] LOG: database system is ready to accept connections
from postgres.
If anyone encounter this problem, please consider updating or reinstalling docker on your machine.
from postgres.
Related Issues (20)
- Initialization script when PGData is not empty HOT 8
- Failure oracle-libs installation
- Skip postgres restart on first run HOT 1
- Reproducible SIGSEGV in query HOT 1
- Separating config using PGDATA does not seem to behave as described in the docs HOT 12
- Upgrade older images to OCI Format or Docker Image manifest v2, schema 2 HOT 3
- Add a HEALTHCHECK to the images HOT 7
- include_dirs env var HOT 4
- Add "build from github.com/postgres/postgres" variation HOT 2
- PostgreSQL 17beta1 HOT 3
- CVE-2023-24538 CVE-2023-24540 HOT 2
- Use of GOSU introduces critical CVEs HOT 2
- PostgreSQL error ( log Docker) HOT 1
- Issue of working with pgsql in my vps machine with easypanel
- Nurlanhajizada
- Please help, I have persisted it, but the table and data are not restored after restarting the container. HOT 1
- please add a Container shell access and viewing MySQL logs directly HOT 3
- associate --user id with the internal postgres user id HOT 13
- Kill a postgres container immediately HOT 5
- Remove gosu HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postgres.