【发布时间】:2018-02-26 17:24:30
【问题描述】:
我在我的开发环境中使用 Postgres 图像 (https://hub.docker.com/_/postgres/)。
自去年以来,init 脚本不再以 root 身份运行 (https://github.com/docker-library/postgres/pull/253)。
但我仍然想在启动时以 root 用户身份运行初始化脚本。
如何授予 postgres 用户 root 权限以完成此操作?
【问题讨论】:
标签: postgresql docker