Vagrant fails to provision docker container -
my vagrantfile:
vagrant.require_version ">= 1.6.0" vagrantfile_api_version = "2" env['vagrant_default_provider'] = 'docker' vagrant.configure(2) |config| config.vm.provision :chef_solo |chef| chef.add_recipe "tomcat" end config.vm.provider "docker" |docker| docker.create_args = ["-d"] docker.has_ssh = true end config.ssh.port = 22 config.ssh.username = "root" config.ssh.password = "password" end
and dockerfile:
from precise-prepared ##add scripts in docker image add ssh.sh /ssh.sh run chmod +x /ssh.sh run echo "root:password" | chpasswd expose 22 ##start ssh services during startup cmd ["/ssh.sh"]
precise-prepared modified ubuntu:12.04 docker image.
when i'm running vagrant command fails following error:
vagrant attempted execute capability 'chef_install' on detect guest os 'linux', guest doesn't support capability. capability required configuration of vagrant. please either reconfigure vagrant avoid capability or fix issue creating capability.
is vagrant's docker provider doesn't support provisioning chef or missing something?
thanks
Comments
Post a Comment