Docker运行hello-world不起作用 [英] Docker run hello-world not working
问题描述
我已经完全按照网站上的文档安装了Docker,但是当我尝试运行 docker run hello-world
时,会从终端获得以下输出:
I've installed Docker following exactly the documentation on the website but when I try to run docker run hello-world
, I get the following output from the terminal:
Saved file tree to doc-filelist.js
Copied JS to doc-script.js
Compiled CSS to doc-style.css
有人知道出什么问题了吗?
Does anybody have an idea what is going wrong?
推荐答案
是否有可能 docker.js 是否在本地安装?
Is it possible that you have docker.js installed locally?
命令的输出类似于docker.js docker
可执行文件而不是Docker容器被调用。
The output from your command looks like the docker.js docker
executable is called instead of the Docker container one.
您显示的日志消息可以在docker.js文档中找到,它看起来像
The log messages that you showed can be found in the docker.js documentation, it looks like you're running that instead of the one you want.
如果这是问题,请运行 npm uninstall -g docker
If this is the issue run npm uninstall -g docker
这篇关于Docker运行hello-world不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!