Answers for "create postgres database in docker container"

2

connect to postgres database in docker container

$ docker exec -it postgres-container psql -U postgres
Posted by: Guest on July-28-2020
1

how to recreate postgres database in docker

docker compose down
docker compose up --force-recreate
Posted by: Guest on June-03-2021
1

docker create postgres db

# inside Dockerfile
COPY your_sql_file.sql /docker-entrypoint-initdb.d/
Posted by: Guest on January-04-2021

Code answers related to "create postgres database in docker container"

Browse Popular Code Answers by Language