docker
docker copied to clipboard
default_version ?
Cookbook version
3.0.0
Chef-client version
12.20.3
Platform Details
oracle linux 7.4
Scenario:
my install fails because there's a newer version :
yum_package[docker-ce] (/var/chef/cache/cookbooks/docker/libraries/docker_installation_package.rb line 19) had an error: Chef::Exceptions::Package: Installed package docker-ce-17.12.0.ce-1.el7.centos is newer than candidate package docker-ce-17.09.0.ce-1.el7.centos
Steps to Reproduce:
run chef docker_service without a version
docker_service 'default' do
action [:create, :start]
install_method 'package'
package_name 'docker-ce'
end
Expected Result:
Not having to specify a version, it should default to the latest ?
Actual Result:
run fails
I also have the use case that I need the latest version in the (cached) repository.
Otherwise it is fighting the automatic security updates performed weekly.