Reputation: 38228
I have installed docker toolbox for windows and run 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
When I do docker images hello-world is there
Upvotes: 0
Views: 1275
Reputation: 1329292
When I do
docker images
hello-world is there
But when you do a docker ps -a
, do you see a container hello-workd running? (or at all?)
docker stop
stops a running container, not an image.
hello-world
is an image which, when executed as a container, prints hello-world and immediately exit. There is nothing to stop at this point.
Upvotes: 3