Docker – Install Docker Machine on Windows

Since I’ve already have VirtualBox installed before, so I will just install Docker Machine separately.

 

1. Install Docker Machine ( follow this official guide):

https://docs.docker.com/machine/install-machine/

Windows user can just skip this part “Installing bash completion scripts”.

 

2. Get started with Docker Machine and a local VM:

“docker-machine” command won’t work in neither Powershell nor cmd, so I use gitBash to follow this official guide:

https://docs.docker.com/machine/get-started/

Follow the first “Create a machine” part until step 5. Then we will do differently as follows:

2.1 Connect gitBash to the VM:

$ docker-machine ssh

2.2 Register an account on Docker Hub so that we could have access to public docker images:

Go to Docker Hub official site and register there.

2.3 In gitBash, login to Docker Hub:

$ docker login

1

2.4 Test the Docker installation is working:

$ docker run hello-world

It will pull hello world image from Docker Hub Registry and run in VM. (https://hub.docker.com/_/hello-world/)

1

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s