我正在使用厨师客户端与docker运行cookbook。它在Ubuntu上运行,但在Windows上出错。 docker的依赖关系已添加到cookbook中。
https://supermarket.chef.io/cookbooks/docker
我正在使用docker cookbook的例子。
docker_image 'busybox' do
action :pull
end
Error :
Recipe: tomcatcookbook::default
* docker_image[busybox] action pull[2017-11-01T14:02:43+05:30] INFO: Processing docker_image[busybox] action pull (tomcatcookbook::default line 6)
================================================================================
Error executing action `pull` on resource 'docker_image[busybox]'
================================================================================
Excon::Error::Socket
--------------------
An address incompatible with the requested protocol was used. - socket(2) (Errno::EAFNOSUPPORT)
Resource Declaration:
---------------------
# In C:/chef/cache/cookbooks/tomcatcookbook/recipes/default.rb
6: docker_image 'busybox' do
7: action :pull
8: end
9:
Compiled Resource:
------------------
# Declared in C:/chef/cache/cookbooks/tomcatcookbook/recipes/default.rb:6:in `from_file'
docker_image("busybox") do
action [:pull]
default_guard_interpreter :default
declared_type :docker_image
cookbook_name "tomcatcookbook"
recipe_name "default"
repo "busybox"
connection #<Docker::Connection:0x0000000005a288c0 @url="unix:///", @options={:socket=>"/var/run/docker.sock", :read_timeout=>120}>
end
System Info:
------------
chef_version=13.5.3
platform=windows
platform_version=10.0.15063
ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x64-mingw32]
program_name=C:/opscode/chef/bin/chef-client
executable=C:/opscode/chef/bin/chef-client
[2017-11-01T14:02:44+05:30] INFO: Running queued delayed notifications before re-raising exception
答案 0 :(得分:1)
正如您在文档(平台支持列表)中看到的那样,该手册不支持Windows。