我正试着在码头上运行奇偶。我的工作站是Windows 10,但Docker是为Linux机器准备的。现在,我在运行带有--base-path选项的Docker时遇到了问题,因为我一直收到以下错误:
Client service error: Client(Database("IO error: directory: Invalid argument"))
这是我正在运行的docker命令:
docker run -v /d/parity/docker:/root/.local/share/io.parity.ethereum/ -p 8180:8180 -p 8545:8545 -p 8546:8546 -p 30303:30303 -p 30303:30303/udp parity/parity:v1.7.9 --unsafe-expose --base-path /root/.local/share/io.parity.ethereum/
有谁有主意吗?
发布于 2017-12-13 20:48:35
我还在windows 10上运行了对接程序,在这个项目的帮助下,在使用端口中的奇偶校验时遇到了非常类似的问题:
https://github.com/paritytech/parity-deploy
这将为您创建停靠文件、撰写文件和配置文件。启动容器后,我得到了同样的错误。我怀疑它必须解决windows和linux之间文件系统的差异。
通过创建卷和挂载/奇偶校验/数据(在您的情况下是/root/..local/share/io.parity.etuum/)来解决这个问题。
要创建卷:
docker volume create myvolume然后在撰写文件中我添加了卷:
volumes:
myvolume:
external: true和在组合文件中的奇偶容器配置替换了卷映射。
- ./data/is_authority:/parity/data使用
- myvolume:/parity/data因此,使用您的docker命令,我将尝试替换
-v /d/parity/docker:/root/.local/share/io.parity.ethereum/使用
-v myvolume:/root/.local/share/io.parity.ethereum/https://ethereum.stackexchange.com/questions/32396
复制相似问题