How to connect shell to my new docker host?

0 votes

I have used docker-machine create command to spin up a docker host (node1). How do I enter into the newly created docker host?

Jul 4 in Docker by Sam
• 4,320 points
31 views

1 answer to this question.

0 votes

Use the following command to connect your shell to the new machine.

 $ eval "$(docker-machine env node1)"

This will help you enter into the newly created docker host.

answered Jul 4 by Sirajul
• 39,540 points

Related Questions In Docker

0 votes
1 answer
+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

answered Oct 16, 2018 in Docker by lina
• 8,110 points

edited Oct 16, 2018 by lina 5,434 views
0 votes
1 answer

How to obtain the Docker container's IP address from the host?

This can be done by executing the ...READ MORE

answered Jul 16, 2018 in Docker by Sophie may
• 9,870 points
1,009 views
0 votes
2 answers

How to edit file after I shell to a docker container?

You can even install it using a ...READ MORE

answered Apr 23 in Docker by Ashish
3,460 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,940 points
235 views
0 votes
1 answer

How to mount directories from a docker-machine to my local host?

You could do this using the docker-machine ...READ MORE

answered Jul 9 in Docker by Sirajul
• 39,540 points
127 views