docker pull postgres:14.3
docker create --name my-postgres -p 8080:5432 -e POSTGRES_PASSWORD=admin postgres:14.3
docker start my-postgres
docker exec my-postgres psql --help
docker exec my-postgres psql -V
docker exec my-postgres psql -U postgres -l
docker exec -it my-postgres psql -U postgres
\q
docker exec -it my-postgres bash
apt-getupdate
apt-get install net-tools
172.17.0.2
docker exec -it my-postgres psql -U postgres -c "create role <user-name> with login password '<password>';"
沒有留言:
張貼留言