Comments (16)
当我使用wsl(ubuntu)启动容器时是能够正常工作的,
docker run --rm --name doctron-alpine -v ${PWD}/doctron.yaml:/doctron.yaml lampnick/doctron
但是在centOS 8.12却读的默认配置,即使自定义配置已经被挂载进去了 我的docker 版本是20.10.8
你是不是启动了两个,一个叫 doctron-alpine,一个叫 doctron?看你 exec 是 doctron 的。
from doctron.
你是说端口吗?端口在配置文件中的是容器内的端口,在宿主机要做端口映射,如: -p 8080:8080
from doctron.
补充资料:
我的自定义配置文件:
docker-compose.yaml:
from doctron.
from doctron.
看提示是端口使用过了,把 docker compose 里面的 ports改一下,如:- "7777:9527" ,本机7777,容器9527
from doctron.
看提示是端口使用过了,把 docker compose 里面的 ports改一下,如:- "7777:9527" ,本机7777,容器9527
并不是这个问题,而是我在 docker compose 指定了配置文件,但是doctron却没有正确读取到它,依旧使用的默认配置
from doctron.
你直接用 docker run 运行看能不能挂载进行,如果能的话就是 docker compose 配置有问题
from doctron.
你直接用 docker run 运行看能不能挂载进行,如果能的话就是 docker compose 配置有问题
从图1可以看出已经挂载进去了,但是没有读出来,我的docker compose也没有写错呀
(*꒦ິ⌓꒦ີ)
from doctron.
你用 docker run 跑一下,把 docker logs 和配置截图出来看
from doctron.
from doctron.
你把${PWD}换成绝对路径试一下呢
from doctron.
你把${PWD}换成绝对路径试一下呢
from doctron.
有个日志少打了,我加一下,发个新版本
from doctron.
你用这个镜像看看,docker pull lampnick/doctron:v0.3.2-alpine
from doctron.
这回得到一句日志:
mapping values are not allowed in this context
from doctron.
你用这个镜像看看,docker pull lampnick/doctron:v0.3.2-alpine
谢谢!是我的配置文件写错了,问题解决了!
from doctron.
Related Issues (20)
- go run main.go启动报错了 HOT 1
- 无法传到阿里oss 报错如下: HOT 3
- 微信图片懒加载无法截图 HOT 2
- [read config ReadInConfig] err: Config File ".doctron" HOT 1
- 接口可以传递HTML文本内容不 HOT 4
- Render Icon HOT 1
- 图片超过3M时转换 HOT 2
- [read config ReadInConfig] err HOT 4
- Error after generation HOT 1
- code:30000000 google-chrome\": executable file not found in %PATH% HOT 1
- 生成的pdf中,汉字全部不显示 HOT 3
- the master branch is not work HOT 3
- 页脚的url怎么去掉 HOT 1
- 自定义页眉页脚 HOT 2
- Is it possible to use custom width and auto height?It's the most possible case. HOT 2
- I found some pictures that couldn't be displayed HOT 2
- [bug] html2image for long page fail HOT 4
- 能否增加一个自适应html的高度 HOT 1
- linux环境html2pdf字体或样式有变化 HOT 3
- exec: "google-chrome": executable file not found in $PATH HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doctron.