Run Docker On Windows Using Vagrant
Upcoming SlideShare
Loading in...5
×
 

Run Docker On Windows Using Vagrant

on

  • 6,840 views

Tutorial on How to Run Docker On Windows Using Vagrant

Tutorial on How to Run Docker On Windows Using Vagrant

Statistics

Views

Total Views
6,840
Views on SlideShare
6,836
Embed Views
4

Actions

Likes
14
Downloads
208
Comments
0

2 Embeds 4

http://agora.villers.pharmagest.com 2
https://twitter.com 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft Word

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Run Docker On Windows Using Vagrant Run Docker On Windows Using Vagrant Document Transcript

  • Run Docker on Windows using VagrantContentsInstall VirtualBox on Windows ...................................................................................................................... 2Install Vagrant on Windows .......................................................................................................................... 7Install Git (with SSH) on Windows .............................................................................................................. 12Run Docker on Windows using VirtualBox and Vagrant ............................................................................. 18 Opening the command prompt .............................................................................................................. 18 Launch an Ubuntu virtual server............................................................................................................. 18 Log onto your Ubuntu server .................................................................................................................. 19 Using Vagrant on Windows Command Prompt .................................................................................. 20 Using SSH ............................................................................................................................................ 20 Running docker ....................................................................................................................................... 23http://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using VagrantInstall VirtualBox on WindowsVirtualBox is a general-purpose full virtualizer for x86 hardware, targeted at server, desktop andembedded use. VirtualBox can be downloaded from https://www.virtualbox.org/wiki/Downloadshttp://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using VagrantAt this point you should have a .exe file in your download directory.Double click on it to launch the installation, and follow the steps.http://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using Vagranthttp://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using Vagranthttp://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using VagrantFrom this point you will get some Windows security boxes popping up to ask you confirmationto install device software. Click the “install” button for all of these.http://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using VagrantInstall Vagrant on WindowsVagrant gives you a disposable environment and consistent workflow for developing and testinginfrastructure management scripts. You can download and install the latest version of Vagrantfrom http://downloads.vagrantup.com/http://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using VagrantChoose the lastest version, and since we are working on windows, chose the .msi file.You should now have a .msi file in your download directory.Double click on it to launch the installation and follow the steps.http://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using Vagranthttp://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using Vagranthttp://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using Vagranthttp://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using VagrantInstall Git (with SSH) on WindowsYou can download and install the latest version of Git from http://git-scm.com/downloadshttp://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using VagrantLaunch the setup wizard and follow the steps:http://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using Vagranthttp://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using Vagranthttp://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using Vagranthttp://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using Vagranthttp://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using VagrantRun Docker on Windows using VirtualBox and VagrantOpening the command promptFirst open a cmd prompt. Press Windows key and then press “R” key. This will open the RUNdialog box for you. Type “cmd” and press Enter. Or you can click on Start, type “cmd” in the“Search programs and files” field, and click on cmd.exe.This should open a cmd prompt window.Alternatively, you can also use a Cygwin terminal, or Git Bash (or any other command lineprogram you are usually using). The next steps would be the same.Launch an Ubuntu virtual serverLet’s download and run an Ubuntu image with docker binaries already installed.git clone https://github.com/dotcloud/docker.gitcd dockervagrant uphttp://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using VagrantCongratulations! You are running an Ubuntu server with docker installed on it. You do not see itthough, because it is running in the background.Log onto your Ubuntu serverLet’s log into your Ubuntu server now. To do so you have two choices 1. Using Vagrant on Windows command prompt 2. Using SSH directlyhttp://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using VagrantUsing Vagrant on Windows Command PromptRun the following commandvagrant sshYou may see an error message starting with “`ssh` executable not found”. In this case it meansthat you do not have SSH in your PATH. If you do not have SSH in your PATH you can set it upwith the “set” command. For instance, if your ssh.exe is in the folder named “C:ProgramFiles (x86)Gitbin”, then you can run the following command:set PATH=%PATH%;C:Program Files (x86)GitbinUsing SSHFirst step is to get the IP and port of your Ubuntu server. Simply runvagrant ssh-configYou should see an output with HostName and Port information. In this example, HostName is127.0.0.1 and port is 2222. And the User is “vagrant”. The password is not shown, but it is also“vagrant”.http://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using VagrantYou can now use this information for connecting via SSH to your server. To do so you can: 1. Use putty.exe 2. Run SSH from a terminalUse putty.exeYou can download putty.exe from this pagehttp://www.chiark.greenend.org.uk/~sgtatham/putty/download.htmlLaunch putty.exe and simply enter the information you got from last step.http://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using VagrantOpen, and enter user = vagrant and password = vagrant.SSH from a terminalYou can also run this command on your favorite terminal (windows prompt, cygwin, git-bash,…). Make sure to adapt the IP and port from what you got from the vagrant ssh-configcommand.ssh vagrant@127.0.0.1 –p 2222Enter user = vagrant and password = vagrant.Congratulations, you are now logged onto your Ubuntu Server, running on top of your Windowsmachine !http://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant
  • Run Docker on Windows using VagrantRunning dockerFirst you have to be root in order to run docker. Simply run the following command:sudo suYou are now ready for the docker’s “hello world” example. Rundocker run -a busybox echo hello worldAll done!http://www.slideshare.net/julienbarbier42/run-docker-on-windows-using-vagrant