Difference between revisions of "Docker: ssh into container"

From Glitchdata
Jump to navigation Jump to search
(Created page with " * docker exec -it <container name> /bin/bash Category: Docker Usage")
 
 
Line 1: Line 1:
  
 +
* docker exec -it <container name> /bin/bash
  
* docker exec -it <container name> /bin/bash
+
Although its possible to ssh into a container, the container paradigm is to have lightweight and self-managed containers. This means troubleshooting via ssh is not encouraged.
  
  
 
[[Category: Docker Usage]]
 
[[Category: Docker Usage]]

Latest revision as of 19:53, 12 March 2019

  • docker exec -it <container name> /bin/bash

Although its possible to ssh into a container, the container paradigm is to have lightweight and self-managed containers. This means troubleshooting via ssh is not encouraged.