gpt4 book ai didi

Docker 组成错误 : container-linux. go: 348

转载 作者:行者123 更新时间:2023-11-29 02:56:40 25 4
gpt4 key购买 nike

当我输入“docker-compose up”时,出现了这个错误:正在启动 elasticsearch-1 ... 错误

ERROR: for elasticsearch-1 Cannot start service elasticsearch-1: b'OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/c/Users/user/Desktop/data/elasticsearch.yml\\\" to rootfs \\\"/mnt/sda1/var/lib/docker/aufs/mnt/3ec70a7ad26a47f6537aed2ac091eb2507dfb4de983183b0e669832229f948d7\\\" at \\\"/mnt/sda1/var/lib/docker/aufs/mnt/3ec70a7ad26a47f6537aed2ac091eb2507dfb4de983183b0e669832229f948d7/usr/share/elasticsearch/config/elasticsearch.yml\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type'

Docker-compose.yml 包含以下内容:

发件人:http://blog.sandeepchivukula.com

elasticsearch-1:
image: elasticsearch
container_name: elasticsearch-1
ports:
- "9200:9200"
- "9300:9300"
volumes:
- ./data/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
command: elasticsearch

kibana-frontend:
image: kibana:latest
container_name: kibana-frontend
ports:
- "5601:5601"
links:
- elasticsearch-1:elasticsearch

你能帮我解决这个错误吗?任何帮助将不胜感激提前谢谢你

最佳答案

我今天遇到了同样的问题,我在这个 GitHub Thread 中找到了适合我的案例的解决方案:

原因:我今天必须更改我的 Windows 密码
解决方案:进入 Docker 设置 -> 共享驱动器,取消选择我的驱动器(+ 应用),重新启动 Docker 应用程序,然后重新选择(+ 应用)后错误停止。

感谢 danielcgithub!

关于Docker 组成错误 : container-linux. go: 348,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51946701/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com