老师,我看了,安装依赖需要使用sudo指令,可是使用git bash显示sudo指令不存在
$ sudo yum install -y yum-utils \ device-mapper-persistent-data \ lvm2
bash: sudo: command not found
而且安装完docker之后运行docker run hello-world,
从远程仓库拉取代码成功,但是之后就没有反应了,是因为没有安装依赖的原因吗
几次没有反应之后强行关闭git-bash,再次运行docker run hello-world
C:\Program Files\Docker\Docker\resources\bin\docker.exe: error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/containers/create: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
See 'C:\Program Files\Docker\Docker\resources\bin\docker.exe run --help'.
就出现如上的错误,是否需要更改镜像地址呢
正在回答 回答被采纳积分+1
你首先要清楚,sudo这个命令是在linux上才有的。
The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
这个错误的提示是,你有没有跑docker服务?docker服务有没有正常的运行起来!
docker最理想的运行环境是Linux,学习起来会少走很多弯路。建议使用windows的hypver-v或者vmware来创建虚拟机,在虚拟机中使用。
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星