Created
July 16, 2015 10:04
-
-
Save anonymous/eb5ce6921e4da8594345 to your computer and use it in GitHub Desktop.
Chef recipe | Ensure aufs Docker driver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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