Skip to content

Instantly share code, notes, and snippets.

@barlog-m
Created October 20, 2014 15:09
Show Gist options
  • Save barlog-m/7193a31d8465509d3111 to your computer and use it in GitHub Desktop.
Save barlog-m/7193a31d8465509d3111 to your computer and use it in GitHub Desktop.
Vagrant config to create ubuntu with docker
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "parallels/ubuntu-14.04"
config.vm.provider "parallels" do |v|
v.name = "vagrant-ubuntu"
v.memory = 1024
v.cpus = 1
v.update_guest_tools = true
end
config.vm.network "private_network", ip: "192.168.100.10"
config.vm.provision :shell, :inline => "apt-get update && apt-get dist-upgrade -y && rm -rf /var/lib/apt/lists/*", :privileged => true
config.vm.provision :shell, :inline => "apt-get install curl -y", :privileged => true
config.vm.provision :shell, :inline => "curl -sSL https://get.docker.io/ubuntu/ | sudo sh", :privileged => true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment