Search
Question: best way to terminate a Docker-based bioconductor/RStudio session?
1
gravatar for anton.kratz
2.2 years ago by
anton.kratz30
Japan
anton.kratz30 wrote:

I am using R/Bioconductor by invoking

docker run -p 8787:8787 bioconductor/devel_base

and then I point my browser to

http://localhost:8787

to access RStudio.

What is the best way to terminate (quit, finish, exit) the running docker/bioconductor/rstudio process? Just Ctrl-C?

ADD COMMENTlink modified 2.2 years ago by Dan Tenenbaum ♦♦ 8.2k • written 2.2 years ago by anton.kratz30
1
gravatar for Dan Tenenbaum
2.2 years ago by
Dan Tenenbaum ♦♦ 8.2k
United States
Dan Tenenbaum ♦♦ 8.2k wrote:

I think control-C will work.

 

You can also (in another window) run docker ps and it will tell you the name of the container that's running and then you can do 

docker stop container_name

Also, next time you can specify the container name when you start docker with the --name option, then you won't have to look up the name.

 

ADD COMMENTlink written 2.2 years ago by Dan Tenenbaum ♦♦ 8.2k

Yes, Ctrl-C does certainly work, this is how I currently terminate the process(es). I was wondering whether this is the recommende/proper way to do it, or if Ctrl-C has any downsides.

ADD REPLYlink written 2.2 years ago by anton.kratz30
1

It is fine to do it. It does leave a container lying around (as you can see with 
docker ps -a but that's ok. You can avoid this in future by adding --rm to your
docker run command.

 

ADD REPLYlink written 2.2 years ago by Dan Tenenbaum ♦♦ 8.2k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 141 users visited in the last hour