进入容器内部,使用postgres cli命令
docker exec -it [mypostgres] /bin/bash
psql -U postgres -W # 使用密码登录
psql -U postgres -W
参考: https://blog.csdn.net/smstong/article/details/17138355
PostgressQL
原文:https://www.cnblogs.com/unixcs/p/13356708.html