-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于在centOS中无法挂载自定义配置的问题 #16
Comments
你是说端口吗?端口在配置文件中的是容器内的端口,在宿主机要做端口映射,如: -p 8080:8080 |
看提示是端口使用过了,把 docker compose 里面的 ports改一下,如:- "7777:9527" ,本机7777,容器9527 |
并不是这个问题,而是我在 docker compose 指定了配置文件,但是doctron却没有正确读取到它,依旧使用的默认配置 |
你直接用 docker run 运行看能不能挂载进行,如果能的话就是 docker compose 配置有问题 |
从图1可以看出已经挂载进去了,但是没有读出来,我的docker compose也没有写错呀 |
你用 docker run 跑一下,把 docker logs 和配置截图出来看 |
你把${PWD}换成绝对路径试一下呢 |
有个日志少打了,我加一下,发个新版本 |
你用这个镜像看看,docker pull lampnick/doctron:v0.3.2-alpine |
谢谢!是我的配置文件写错了,问题解决了! |
当我使用wsl(ubuntu)启动容器时是能够正常工作的,
docker run --rm --name doctron-alpine -v ${PWD}/doctron.yaml:/doctron.yaml lampnick/doctron
但是在centOS 8.12却读的默认配置,即使自定义配置已经被挂载进去了
我的docker 版本是20.10.8
The text was updated successfully, but these errors were encountered: