Launch a Docker terminal
1. Launch a Docker terminal
This tutorial specifies how to launch multiple docker terminals connecting to the same container.1.1 Windows 10
Open Windows Terminal app. Open a new tab with Windows PowerShell or Ubuntu (where you see the "+" icon on tab bar, click the downward arrow, and select Windows PowerShell). Enter the following command:PS C:\Users\Qian Zhu> docker exec -it giotto-1.0.2 bash
dean@1131bdf6cc65:/$
You are now in Docker terminal.
- If the docker container is not running yet in the background, first run it:
Then try the "docker exec" command again.PS C:\Users\Qian Zhu> docker start giotto-1.0.2
1.2 macOS
Open the Terminal app. Then, enter the following:$ docker exec -it giotto-1.0.2 bash
dean@1131bdf6cc65:/$
You are now in Docker terminal.
- If Docker container is not yet run, please run it first:
Then try the "docker exec" command again.$ docker start giotto-1.0.2
1.3 Ubuntu
Open the GNOME Terminal. Same command as macOS.1.4 RStudio
You can also launch a Docker terminal in RStudio web browser interface. For example, suppose you are in middle of running Giotto using the Rstudio in docker image through http://localhost:8787.Go to the menu bar in Rstudio, select Tools, then Terminal, then New Terminal (Shift+Alt+R).
This terminal will not have some path in the $PATH variable. Add it first when the new terminal appears.
$ export PATH=$PATH:/usr/local/bin
You can now use it as usual.