Get Bash command after Docker in running on a shell

  • Issue type : docker bash command

  • OS Version/build
    google cloud platform ubuntu 16.04

  • Steps to reproduce
    So I want to run Rstudio within docker and I want to go bash command to update some apt-get functionalities. However, once docker is running. I don’t have a linux command line to get into bash.
    What I need to do is following

      # Get the container-id
      docker ps
      # Use the reported container-id below
      docker exec -it <container-id> bash ```
    

Once I run a rocker/verse Docker, there is no command line anymore from google cloud shell to do docker ps/ docker exec, etc. I am able to get Rstudio program on a browser using external IP address from VPN.

joshuaisland@instance-2:~$ docker run -e PASSWORD=#### --rm -p 8787:8787 rocker/verse
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] add: executing... 
Nothing additional to add
[cont-init.d] add: exited 0.
[cont-init.d] userconf: executing... 
[cont-init.d] userconf: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.