小编use*_*807的帖子

Docker npm安装失败

我正在尝试使用Docker构建一个ASP.Net 5.0 Web应用程序,但它在到达npm安装步骤时失败,其中:

Step 14 : RUN npm install
 ---> Running in 15c191d1ca1d
npm WARN deprecated gulp-karma@0.0.4: Please use Karma directly: https://github.com/karma-runner/gulp-karma
npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible. …
Run Code Online (Sandbox Code Playgroud)

node.js npm docker npm-install

4
推荐指数
1
解决办法
6694
查看次数

Docker中的ASP.NET 5.0 beta 8无法启动

我一直在Docker容器中使用ASP.NET 5.0 beta 7运行一个网站,使用官方Docker镜像 - https://github.com/aspnet/aspnet-docker - 工作正常.

我最近将我的项目更新为beta 8,并将Dockerfile更改为使用了Docker映像的beta 8版本.当我在Windows机器上本地运行它时,一切正常,无论我使用Visual Studio通过IIS Express启动项目,还是使用Kestrel运行它.

但是,然后我把它推到我的Dokku服务器,它似乎没有正常启动.我没有从容器输出中得到任何错误,但我有一个CHOKS文件,Dokku用它来确保Web服务器已经启动,这失败了(表明它没有正确启动,或者没有按原样收听) .我试图删除CHECKS,我也无法连接到它 - 我从nginx收到一个错误的网关消息.

我不知道为什么会这样,因为当我推到Dokku时,我收到以下回复:

...
remote: [1G-----> Attempt 5/5 Waiting for 10 seconds ...[K
remote: [1G       CHECKS expected result:[K
remote: [1G       http://localhost/ => "My Website"[K

remote: Could not start due to 1 failed checks.[K
remote: [1G !    [K
remote: [1Gcurl: (7) Failed to connect to 172.17.2.14 port 5000: Connection     refused[K
remote: [1G !    Check attempt 5/5 failed.[K
remote: [1G=====> mywebsite container output:[K
remote: [1G       info    : …
Run Code Online (Sandbox Code Playgroud)

asp.net docker dokku asp.net-core

2
推荐指数
1
解决办法
722
查看次数

标签 统计

docker ×2

asp.net ×1

asp.net-core ×1

dokku ×1

node.js ×1

npm ×1

npm-install ×1