Everyone around you is talking big mouth on Docker, What is Docker really?Docker is a platform for developers and sysadmins to develop, ship, and run applications. Docker lets you quickly assemble applications from components and eliminates the friction that can come when shipping code. Docker lets you get your code tested and deployed into production as fast as possible.
- The Docker Engine – The lightweight and powerful open source container virtualization technology combined with a work flow for building and containerizing your applications.
- Docker Hub – The SaaS service for sharing and managing your application stacks.
As the Docker engine uses Linux specific kernels, to run it in windows we need a light Virtual Machine. We use the Windows Docker client, virtualized Docker Engine to control, to build, run and manage Docker containers. To help us with this docker itslef have designed a Boot2Docker application that installs the virtual machine and runs the Docker daemon.As the Docker engine uses Linux specific kernels, to run it in windows we need a light Virtual Machine. We use the Windows Docker client, virtualized Docker Engine to control, to build, run and manage Docker containers. To help us with this docker itslef have designed a Boot2Docker application that installs the virtual machine and runs the Docker daemon.
Installation
- Download the latest release of the Docker for Windows installer
- Run the installer, which will install VirtualBox, MSYS-git, the boot2docker Linux ISO, and the Boot2Docker management tool.
- Run the
Boot2Docker Start
shell script from your Desktop or Program Files > Boot2Docker for Windows. The Start script will ask you to enter an ssh key passphrase – the simplest (but least secure) is to just hit [Enter].
The Boot2Docker Start
script will connect you to a shell session in the virtual machine. If needed, it will initialize a new VM and start it.
Video guide for Installing Docker on windows.
Upgrading
- Download the latest release of the Docker for Windows Installer
- Run the installer, which will update the Boot2Docker management tool.
- To upgrade your existing virtual machine, open a terminal and run:
boot2docker stop boot2docker download boot2docker start
Running Docker
Boot2Docker will log you in automatically so you can start using Docker right away.
Let’s try the hello-world
example image. Run
$ docker run hello-world
This should download the very small hello-world
image and print a Hello from Docker.
message.
Further Details
The Boot2Docker management tool provides several commands:
$ ./boot2docker Usage: ./boot2docker [<options>] {help|init|up|ssh|save|down|poweroff|reset|restart|config|status|info|ip|delete|download|version} [<args>]
Container port redirection
If you are curious, the username for the boot2docker default user is docker
and the password is tcuser
.
The latest version of boot2docker
sets up a host only network adaptor which provides access to the container’s ports.
If you run a container with an exposed port:
docker run --rm -i -t -p 80:80 nginx
Then you should be able to access that nginx server using the IP address reported to you using:
boot2docker ip
Typically, it is 192.168.59.103, but it could get changed by Virtualbox’s DHCP implementation.
For further information or to report issues, Click here.
Install Docker on Mac OS X
See the video to install Docker on Mac OS X
Source : Docker Website, Boot2Docker Website