docker installation for windows

1) download “Docker Toolbox” and install

*** If you have a previous version of VirtualBox installed, do not reinstall it with the Docker Toolbox installer. When prompted, uncheck it.

If you have Virtual Box running, you must shut it down before running the installer.

ref : https://docs.docker.com/toolbox/toolbox_install_windows/

2) running Docker from the VirtualBox

2.1) Create

$ docker-machine create --driver virtualbox default

NOTE : default is the nodename

2.2) List

$ docker-machine ls

2.3) running docker from the existing command

$ eval $(docker-machine env --shell cmd default)

NOTE : this will set the DOCKER_TLS_VERITY, DOCKER_HOST, DOCKER_CERT_PATH, and DOCKER_MACHINE_NAME

We can see the result of the script using the following command

$ docker-machine env --shell cmd default

2.4) Hello world

docker run hello-world

..

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