Skip to content

Commit

Permalink
Packages: pin docker version to 1.12.6 due to kubernetes/kubernetes#4…
Browse files Browse the repository at this point in the history
  • Loading branch information
Bregor committed Jan 26, 2017
1 parent 4d21379 commit ccf15d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions attributes/docker.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
default['docker']['storage-driver'] = 'overlay2'
default['docker']['live-restore'] = true
default['docker']['version'] = '1.12.6-0'
default['docker']['settings']['storage-driver'] = 'overlay2'
default['docker']['settings']['live-restore'] = true
8 changes: 6 additions & 2 deletions recipes/packages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@
owner 'root'
group 'root'
mode '0644'
content(node['docker'].to_json)
not_if { node['platform_version'].to_f < 16.04 }
content(node['docker']['settings'].to_json)
end

apt_preference 'docker-engine' do
pin "version #{node['docker']['version']}~#{node['platform']}-#{node['lsb']['codename']}"
pin_priority '700'
end

package 'docker-engine' do
Expand Down

0 comments on commit ccf15d1

Please sign in to comment.