【发布时间】:2020-10-20 15:43:25
【问题描述】:
我目前正在测试 InterSystems IRIS 数据平台的 docker 容器。我想用这一行更改默认密码(来自dockerhub指令:https://hub.docker.com/_/intersystems-iris-data-platform/plans/222f869e-567c-4928-b572-eb6a29706fbd?tab=instructions):
docker run --name my-iris -d --publish 9091:51773 --publish 9092:52773 --volume /home/user1/:/durable store/intersystems/iris-community:2020.2.0.204.0 --password-file /durable/password/password.txt
我的密码路径是:C:\Users\user1\Desktop\Test\DockerProjekt\warenverwaltung\container\IRISDataPlatform\password\password.txt
它说我必须使用绝对路径,但我对绝对路径到底是什么不太满意。我试过了:
docker run --name my-iris -d --publish 9091:51773 --publish 9092:52773 --volume /container/IRISDataPlatform/password/:/durable 92ecaf86671c --password-file /durable/password.txt
但在 Docker Desktop 中,我看到容器因错误而退出:
[INFO] 更改 InterSystems IRIS 密码...
[错误] 20200630-10:05:56:906696500 错误:密码文件 '/durable/password.txt' 未找到
[错误] 命令“changePassword.sh /durable/password.txt”退出 状态 256
[致命] 更改 InterSystems IRIS 密码时出错
信息:我通过 Dockerfile 创建了一个镜像,所以 92ecaf 是我的镜像 ID。它与 store/intersystems/iris-community:2020.2.0.204.0 完全相同。图像是在目录中构建的: "C:\Users\user1\Desktop\Test\DockerProjekt\warenverwaltung"
【问题讨论】:
标签: docker intersystems intersystems-iris