Merge pull request #5860 from arthurvanduynhoven/docker-provisioner-deb-fix
provisioner/docker: Docker Provisioner fails on Debian [ubuntu/trusty64]
This commit is contained in:
commit
4d2e8fd591
|
@ -8,11 +8,11 @@ module VagrantPlugins
|
|||
package << "-#{version}" if version != :latest
|
||||
|
||||
machine.communicate.tap do |comm|
|
||||
comm.sudo("apt-get update -y")
|
||||
# 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 update -y")
|
||||
comm.sudo("apt-get install -y --force-yes -q curl")
|
||||
comm.sudo("curl -sSL https://get.docker.com/gpg | apt-key add -")
|
||||
comm.sudo("echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list")
|
||||
|
|
Loading…
Reference in New Issue