Docker Community Forums

Share and learn in the Docker community.

Doubt about keep docker running after close the terminal

I am trying to run a long simulation using docker. When I close the Linux terminal the process stops.

I have tried putting the command nohup but it does not work.

nohup docker run -ti -v $(pwd):/io --rm mtb/mtb bash.

Also, I have put -t -d but does not work. Is there a way to continue running the simulation once the terminal has been closed or the connection has ended?
thanks