Skip to main content

How to get bash or ssh or shell access to a docker machine

We can get shell access to a docker machine from host machine by running following command.

docker exec -i -t <container_id> /bin/bash
where
container_id is the CONTAINER ID of the running instance. It can be obtained by running command:

docker ps

Comments