Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Docker + OpenStack hands-on (24 September 2014)

Docker + OpenStack hands-on (24 September 2014)

Supportive slides for the Docker + OpenStack hands-on, at the 3rd Docker Athens meetup (Docker + OpenStack) at The Cube Athens, at 24 September 2014.

Avatar for Paris Kasidiaris

Paris Kasidiaris

September 25, 2014

More Decks by Paris Kasidiaris

Other Decks in Programming

Transcript

  1. Prepare the machine •  Get a clean machine – Prefer Ubuntu

    14.04 or 12.04 •  Clone Devstack –  git clone https://github.com/openstack-dev/devstack –  git checkout stable/havana •  Install socat –  sudo apt-get install socat
  2. Configure the Nova driver 1.  Install Docker –  curl -sSL

    https://get.docker.io/ubuntu/ | sudo sh 2.  Prepare configuration file –  echo VIRT_DRIVER=docker >> localrc 3.  Run Docker Nova driver installation –  ./tools/docker/install_docker.sh –  Do not run the above command as root!
  3. Set up Devstack •  Install Devstack – ./stack.sh –  Do not

    run the above command as root! •  Configure Apache –  sudo rm /etc/apache2/sites-enabled/000-default.conf –  Remove Require all denied from /etc/apache2/apache2.conf –  sudo service apache2 reload
  4. Spawn containers •  Log into Horizon –  Open http://your-server-ip in

    your browser •  Click on “Instances” under “Manage Compute” •  Click on “Launch Instance”
  5. Lacking features •  No way to stop or remove instances

    •  Complex image management •  No console access