GithubHelp home page GithubHelp logo

Comments (16)

lampnick avatar lampnick commented on May 17, 2024

当我使用wsl(ubuntu)启动容器时是能够正常工作的, docker run --rm --name doctron-alpine -v ${PWD}/doctron.yaml:/doctron.yaml lampnick/doctron 但是在centOS 8.12却读的默认配置,即使自定义配置已经被挂载进去了 image 我的docker 版本是20.10.8

你是不是启动了两个,一个叫 doctron-alpine,一个叫 doctron?看你 exec 是 doctron 的。

from doctron.

lampnick avatar lampnick commented on May 17, 2024

你是说端口吗?端口在配置文件中的是容器内的端口,在宿主机要做端口映射,如: -p 8080:8080

from doctron.

youmu1 avatar youmu1 commented on May 17, 2024

补充资料:
我的自定义配置文件:
CE~CW720{4EMUAQPSPM LQX
docker-compose.yaml:
C}8Z4@(G U9V%X~3CBSZ}H](https://user-images.githubusercontent.com/47550916/137662220-8f21860b-e956-45ce-99ef-e75a6ac81818.png) log: ![3P(D0HY_N6LYIFJF1IJWY3

from doctron.

youmu1 avatar youmu1 commented on May 17, 2024

dockercompose
C}`8Z4@(G U9V%X~3CBSZ}H

from doctron.

lampnick avatar lampnick commented on May 17, 2024

看提示是端口使用过了,把 docker compose 里面的 ports改一下,如:- "7777:9527" ,本机7777,容器9527

from doctron.

youmu1 avatar youmu1 commented on May 17, 2024

看提示是端口使用过了,把 docker compose 里面的 ports改一下,如:- "7777:9527" ,本机7777,容器9527

并不是这个问题,而是我在 docker compose 指定了配置文件,但是doctron却没有正确读取到它,依旧使用的默认配置

from doctron.

lampnick avatar lampnick commented on May 17, 2024

你直接用 docker run 运行看能不能挂载进行,如果能的话就是 docker compose 配置有问题

from doctron.

youmu1 avatar youmu1 commented on May 17, 2024

你直接用 docker run 运行看能不能挂载进行,如果能的话就是 docker compose 配置有问题

从图1可以看出已经挂载进去了,但是没有读出来,我的docker compose也没有写错呀
(*꒦ິ⌓꒦ີ)

from doctron.

lampnick avatar lampnick commented on May 17, 2024

你用 docker run 跑一下,把 docker logs 和配置截图出来看

from doctron.

youmu1 avatar youmu1 commented on May 17, 2024

路径与doctron.yaml
image
docker logs
image

from doctron.

lampnick avatar lampnick commented on May 17, 2024

你把${PWD}换成绝对路径试一下呢

from doctron.

youmu1 avatar youmu1 commented on May 17, 2024

你把${PWD}换成绝对路径试一下呢

image
结果是一样的

from doctron.

lampnick avatar lampnick commented on May 17, 2024

有个日志少打了,我加一下,发个新版本

from doctron.

lampnick avatar lampnick commented on May 17, 2024

你用这个镜像看看,docker pull lampnick/doctron:v0.3.2-alpine

from doctron.

youmu1 avatar youmu1 commented on May 17, 2024

这回得到一句日志:
image
mapping values are not allowed in this context

from doctron.

youmu1 avatar youmu1 commented on May 17, 2024

你用这个镜像看看,docker pull lampnick/doctron:v0.3.2-alpine

谢谢!是我的配置文件写错了,问题解决了!

from doctron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.