📜  连接到容器映像 postgres - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:43.232000             🧑  作者: Mango

代码示例1
docker exec -it 05b3a3471f6f bash
root@05b3a3471f6f:/# psql -U postgres
postgres-# CREATE DATABASE mytest;
postgres-# \q