我的搬运工运行容器的Postgres和odoo容器在Linux系统中,问题是如何设置odoo暗号像Postgres的:
$ echo 'secret' > notpasswords
$ docker run -d --name pg -e POSTGRES_PASSWORD_FILE=/notpasswords -v "$PWD/notpasswords:/notpasswords" postgres:9.6-alpine
$ docker run -it --rm --link pg postgres:9.6 bash
root@c37d1f3f2910:/# psql -h pg -U postgres
Password for user postgres:
psql (9.6.5)
Type "help" for help.
postgres=#