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

  1. I lean toward excellent substance, which I found in your article. The data you've given is valuable and vital to us. Keep on posting articles like these. Much thanks. Cnc Machine Vice

    ReplyDelete

Post a Comment