簡體   English   中英

無法使用Goland部署Docker容器-DockerClientException-.eslintrc(無此類文件或目錄)

[英]Unable to deploy docker container with Goland - DockerClientException - .eslintrc (No such file or directory)

我正在Docker容器中構建Go應用

當我嘗試使用此命令預覽在Golang中運行docker容器時

docker build -f Dockerfile.local -t myGoApp:exp . && docker run -v /volume:/go --name myGoApp --env-file ./test.env --network=myGoApp_network myGoApp:exp 

我得到:

Building image...
Failed to deploy 'myGoApp Dockerfile: Dockerfile.local': com.github.dockerjava.api.exception.DockerClientException: Error occurred while preparing Docker context folder.<br/>caused by: java.io.FileNotFoundException: /home/julien/go/src/gitlab.com/xxx/myGoApp/vendor/github.com/influxdata/platform/chronograf/.eslintrc (No such file or directory)

當我在終端上運行相同的命令時,它可以工作

當我通過Goland在docker compose內運行等效項時,它也起作用。

我也檢查了一下,並且相關的.eslintrc存在。

為什么會這樣呢? 谷歌搜索,我發現它與docker-java有關,但是我真的找不到解決方法。

這是Docker版本信息:

Client:
 Version:           18.09.1
 API version:       1.39
 Go version:        go1.10.6
 Git commit:        4c52b90
 Built:             Wed Jan  9 19:35:31 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.1
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.6
  Git commit:       4c52b90
  Built:            Wed Jan  9 19:02:44 2019
  OS/Arch:          linux/amd64
  Experimental:     false

知道有什么問題嗎? 我需要啟動它,那是因為我想實現一個容器內調試像解釋這里

確保檢查卷中是否存在斷開的硬鏈接或符號鏈接,這些硬鏈接或符號鏈接指向主機文件系統上不存在的內容。 如果鏈接的目標未解析為文件,則不會生成映像。 這是我處理問題時遇到的問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM