(Closed) Ever-running container

4 months ago by
Hello everyone,

I use 

docker run -v $(pwd):/home/fenics/shared -ti --name <conatiner name> <image 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 <conatiner name> <image 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?

Community: FEniCS Project

This post is closed by moderator and no new answer/comment may be added.

This is a question related to Docker, not FEniCS. Try asking here https://forums.docker.com/

written 4 months ago by Michal Habera  
Please login to add an answer/comment or follow this question.
The thread is closed. No new answer/comment may be added.

Similar posts:
Search »