Coder Social home page Coder Social logo

Comments (9)

asevans48 avatar asevans48 commented on August 28, 2024 1

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.

tianon avatar tianon commented on August 28, 2024

Is your local script executable? "chmod +x docker-entrypoint.sh"

from postgres.

thromera avatar thromera commented on August 28, 2024

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

  1. http://thomas-romera.com/
  2. #21 (comment)

from postgres.

tianon avatar tianon commented on August 28, 2024

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.

magick93 avatar magick93 commented on August 28, 2024

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.

yosifkit avatar yosifkit commented on August 28, 2024

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.

yosifkit avatar yosifkit commented on August 28, 2024

Unable to reproduce. Closing. (feel free to post if more information is found to reproduce)

from postgres.

tianon avatar tianon commented on August 28, 2024

@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.

liadmagen avatar liadmagen commented on August 28, 2024

If anyone encounter this problem, please consider updating or reinstalling docker on your machine.

from postgres.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.