約540,000件1ページ目

日本語のみで絞り込む

Immediate setup & data persistence. This guide gets you from zero to a running PostgreSQL container in under five minutes, then explains how to keep your ...

2016/6/8 -Open bash in the specified running container: docker exec -it b5f2039251e1 bash; Lists databases: psql -h localhost -p 5432 -U postgres -l.

2026/6/8 -The -p 5432:5432 flag is the part that matters. It tells Docker to forward traffic from port 5432 on your host into port 5432 in the container.

2021/12/29 -I have container with Postgres. I have to run one commnad “ALTER ROLE postgres SET search_path = constructor,public;” I can do next way: ...

2024/6/9 -The PostgreSQL docker container has the psql CLI. It can be used to connect to the PostgreSQL service in the docker container with the command ...

2026/9/23 -Open a shell in the container with docker exec -it <container_name> "bash" , then connect using psql -d postgres -h localhost -U postgres — no ...

How to use Docker to run Postgres. This howto is for users who use or need to use Postgres, but are not experienced in using Docker.

Shell commands for postgres · enter the psql command line psql -h localhost -U postgres · list databses \l · connect to a db \c <database_name> <optional: as_user> ...

2019/9/2 -So for Docker container called db , default user postgres and database name blog it would be docker exec -it db psql -Upostgres -a blog ...

2025/4/14 -docker exec -it postgres-db : Run an interactive command inside the container named "postgres-db". psql -U myuser -d mydatabase : Start psql ...