best way to terminate a Docker-based bioconductor/RStudio session?
1
1
Entering edit mode
anton.kratz ▴ 60
@antonkratz-8836
Last seen 7 months ago
Japan, Tokyo, The Systems Biology Insti…

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?

docker • 3.3k views
ADD COMMENT
1
Entering edit mode
Dan Tenenbaum ★ 8.2k
@dan-tenenbaum-4256
Last seen 5 months ago
United States

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 COMMENT
0
Entering edit mode

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 REPLY
1
Entering edit mode

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 REPLY

Login before adding your answer.

Traffic: 734 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6