createdb -h 127.0.0.1 -U postgres -E UTF8 -O postgres nano-api
docker 环境演示
[root@netkilller ~]# docker exec -it postgres bash
root@f402670ad8c3:/# createdb -h 127.0.0.1 -U postgres -E UTF8 -O postgres netkiller
root@f402670ad8c3:/# exit
exit
[root@netkilller ~]#