[英]chef windows cookbook compile error, cannot find file windows/error
[英]Docker chef cookbook on windows
我正在使用厨师客户端与Docker运行菜谱。 它可以在Ubuntu上运行,但在Windows上会出错。 Docker的依赖关系已在食谱中添加。
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
正如您在文档(平台支持列表)中所看到的,该食谱不支持Windows。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.