我想从容器同步配置文件到主机,我哪里错了?我该怎么办?

I want to synchronize the configuration file from container to the host,Where did I go wrong?what should i do?

我运行 :

docker run -p 8080:8080 --name trino11  -v /data/dir1:/usr/lib/trino/etc  trinodb/trino

显示:

root@yy:/data# docker run -p 8380:8080 --name trino000  -v /data/dir1:/usr/lib/trino/etc  trinodb/trino
+ [[ ! -d /usr/lib/trino/etc ]]
+ set +e
+ grep -s -q node.id /usr/lib/trino/etc/node.properties
+ NODE_ID_EXISTS=2
+ set -e
+ NODE_ID=
+ [[ 2 != 0 ]]
+ NODE_ID=-Dnode.id=374f76e5daef
+ exec /usr/lib/trino/bin/launcher run -Dnode.id=374f76e5daef
ERROR: Config file is missing: /usr/lib/trino/etc/config.properties

如果不需要自动将配置文件从容器复制到主机,我可以运行

docker run -p 8080:8080 --name trino trinodb/trino

来自 https://hub.docker.com/r/trinodb/trino

Trino 配置应安装在 /etc/trino

-v /your/path:/etc/trino

绑定到 /usr/lib/trino/etc 会混淆启动器脚本。

有关详细信息,请参阅 https://github.com/trinodb/trino/blob/master/core/docker/README.md