Skip to content

Instantly share code, notes, and snippets.

Created July 16, 2015 10:04
Show Gist options
  • Save anonymous/eb5ce6921e4da8594345 to your computer and use it in GitHub Desktop.
Save anonymous/eb5ce6921e4da8594345 to your computer and use it in GitHub Desktop.
Chef recipe | Ensure aufs Docker driver
#
# Recipe:: docker
#
aufs_exists = `lsmod | grep aufs | wc -l`.strip
if aufs_exists.to_i == 0
kernel_version = node["kernel"]["release"]
apt_package "linux-image-extra-#{kernel_version}"
execute "modprobe_aufs" do
command "modprobe aufs"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment