Ever running container

Hello everyone,

I started to use docker on my windows machine and do,

docker run -v $(pwd):/home/fenics/shared -ti --name /bin/bash

to create a container and I expect it to be keep running even after I turn off and on my computer, however it does not, after I turn off my computer and turn on again I simply do not see the container when I do docker ps but it is rather listed under docker ps -a as a not-running container.

I have also tried

docker run -v $(pwd):/home/fenics/shared -ti -d --name /bin/bash

but it did not work either, anyone knows what should I do for the container not to stop running when I turn off my computer?

1 Like