简体   繁体   English

无法在Windows上使用Docker停止容器

[英]Cannot stop container with docker on windows

I have installed docker toolbox for windows and run hello-world. 我已经为Windows安装了docker工具箱并运行hello-world。

I now want to stop it with 我现在想用

docker stop hello-world

But this generate an error : 但这会产生一个错误:

failed to stop container (hello-world) no such container 无法停止容器(Hello-World)没有这样的容器

When I do docker images hello-world is there 当我执行docker images hello-world时

When I do docker images hello-world is there 当我执行docker images hello-world时

But when you do a docker ps -a , do you see a container hello-workd running? 但是,当您执行docker docker ps -a ,您是否看到容器已在工作? (or at all?) (或完全没有?)

docker stop stops a running container, not an image. docker stop停止正在运行的容器,而不是图像。

hello-world is an image which, when executed as a container, prints hello-world and immediately exit. hello-world当作为容器执行时,会打印hello-world并立即退出的图像。 There is nothing to stop at this point. 在这一点上没有停止的事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM