- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
我正在 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
知道哪里出了问题吗?我需要以这种方式启动它,因为我想像解释的那样在容器内实现调试 here
最佳答案
确保检查卷中是否存在损坏的硬链接(hard link)或指向主机文件系统上不存在的内容的符号链接(symbolic link)。如果链接的目标未解析为文件,它将不会构建图像。当我处理它时,这是我的问题。
关于docker - 无法使用 Goland 部署 docker 容器 - DockerClientException - .eslintrc(没有这样的文件或目录),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54365069/
我正在更新一些 repos,并希望从 5.x 迁移到 7.x eslint。但是我们在所有存储库中都使用文件 .eslintrc。根据 eslints 的 official configuration
我正在从事一个具有 .eslintrc 的项目文件 checkin 到项目根目录下的源代码管理。 问题是它有自定义依赖项,当我使用工具运行我的 linting(与 Vim 的语法)时,它失败了。依赖项
当我“npm start”我的项目时,我遇到了这个错误: 我已经知道问题出在 .eslintrc 文件中,所以我添加了这个: "rules": { "quotes": [2, "single"
我有以下 .eslintrc ,每当我使用 aribnb 和/或 airplus 扩展检查我的项目时,我都会收到以下错误: // .eslintrc { "parser": "babel-esli
我有一个与 ES6 一起工作的节点项目,并在公共(public)文件夹中提供一个 Angular 项目: ├── public │ ├── client.js │ └── .eslintrc
我使用原子文本编辑器。以下是我为让我的 linter 使用 React 和 ES6 而采取的步骤: 安装 atom-react 包 当我开始一个新项目时,我运行 npm install --save
native 并且在配置 eslint 时遇到问题。这是我的 .eslintrc.js。 module.exports = { "extends": "airbnb", "parser
使用时 npx create-react-app appname , react-scripts安装的软件包包含一个 eslint 依赖项,其中包含“一组可查找常见错误的最小规则”。我想使用 pret
在我的 typescript 项目中,我使用的是 eslint。下面的文件在根目录下,我还有子文件夹 /dist和 /src . eslintrc.js module.exports = { ro
我正在通过 WebStorm 编辑器运行 ESLint。我的 .eslintrc.json 中显然有一个意想不到的 token 文件。然而,WebStorm 只是告诉我我有一个意想不到的 token
我是 spacemacs 的新手,我遵循 https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Bframeworks/react 中的
eslint 允许 json 以外的格式,包括 .js(如果作为模块导出)。不幸的是,eslint 所需的键包括破折号,例如下面的prefer-const。需要引用。这似乎有效。 但是:是否有一种解决
我在运行以下 lint 命令时收到弃用警告 eslint src/js/**/*.js src/js/**/*.jsx webpack.config.js --quiet 警告: Deprecatio
我将 Vim 用于我的 React 项目。我在一个新的启动中启动了一个项目,在项目文件夹中,eslintrc 位于这样的子目录中: - Lint ---目录1 ----目录2 -----eslintr
我们正在使用一个非常简单的 .eslintrc.json 文件,但我无法弄清楚如何做我的 IDE 自动执行但随后 ESlint 提示的事情。 我要对齐下面的等号 let foo = {} foo.on
我是 ESLint 的新手,并且我已成功将 ESLint 与 IntelliJ 集成. 开箱即用,我的 ESLint 集成无法识别 node,但对文档的基本审查表明,通过在根目录创建名为 .eslin
我有一个 .eslintrc.base.js使用以下配置: module.exports = { env: { browser: true, node: tru
我正在使用 TypeScript 通过 Jest 和 Cypress 测试我的应用。 Jest 文件以 .test.ts 结尾,而 Cypress 测试文件以 .spec.ts 结尾。我用 Jest
我正在尝试为我的项目使用标准代码样式,我发现 http://editorconfig.org/ ,这是一个标准。我非常喜欢它,而且 Intellij 支持它(我们使用 Intellij)。 我有一个
我试图让 eslint 忽略我使用 webpack.ProvidePlugin 全局导入的文件,但该文件仍处于 linted 状态。 //file arrangement - vendor `-
我是一名优秀的程序员,十分优秀!