Sha256: 677236c2b64860f792350c9942d43d5eff9a354bef16a49e94e94e8b9022594b
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
module VagrantPlugins module Vocker module Cap module Debian module DockerInstall def self.docker_install(machine, version) package = 'lxc-docker' package << "-#{version}" if version != :latest machine.communicate.tap do |comm| # TODO: Perform check on the host machine if aufs is installed and using LXC if machine.provider_name != :lxc comm.sudo("lsmod | grep aufs || modprobe aufs || apt-get install -y linux-image-extra-`uname -r`") end comm.sudo("apt-get install -y --force-yes -q curl") comm.sudo("curl https://get.docker.io/gpg | apt-key add -") comm.sudo("echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list") comm.sudo("apt-get update") comm.sudo("apt-get install -y --force-yes -q xz-utils #{package} -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold'") end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vocker-0.4.1 | lib/vocker/cap/debian/docker_install.rb |