From 2dad75963885d02626ddef2dadee02a0a453bda3 Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Fri, 18 Jan 2019 00:27:40 -0600 Subject: [PATCH] Debian/Ubuntu: Update the docker step Docker manages its own snapshots, so we are going to set com.sun:auto-snapshot=false. Also, this isn't just for docker-ce. --- Debian-Stretch-Root-on-ZFS.md | 5 +++-- Ubuntu-18.04-Root-on-ZFS.md | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Debian-Stretch-Root-on-ZFS.md b/Debian-Stretch-Root-on-ZFS.md index b1c95cc..77c9b63 100644 --- a/Debian-Stretch-Root-on-ZFS.md +++ b/Debian-Stretch-Root-on-ZFS.md @@ -130,8 +130,9 @@ Properties are inherited, if you want to create (for example) `rpool/var/lib` yo If this system will store local email in /var/mail: # zfs create rpool/var/mail - If this system will use docker-ce (which creates snapshots by default): - # zfs create -o mountpoint=/var/lib/docker rpool/var/docker + If this system will use Docker (which manages its own datasets & snapshots): + # zfs create -o com.sun:auto-snapshot=false \ + -o mountpoint=/var/lib/docker rpool/var/docker If this system will use NFS (locking): # zfs create -o com.sun:auto-snapshot=false \ diff --git a/Ubuntu-18.04-Root-on-ZFS.md b/Ubuntu-18.04-Root-on-ZFS.md index 609484c..965635c 100644 --- a/Ubuntu-18.04-Root-on-ZFS.md +++ b/Ubuntu-18.04-Root-on-ZFS.md @@ -151,8 +151,9 @@ With ZFS, it is not normally necessary to use a mount command (either `mount` or If this system will store local email in /var/mail: # zfs create rpool/var/mail - If this system will use docker-ce (which creates snapshots by default): - # zfs create -o mountpoint=/var/lib/docker rpool/var/docker + If this system will use Docker (which manages its own datasets & snapshots): + # zfs create -o com.sun:auto-snapshot=false \ + -o mountpoint=/var/lib/docker rpool/var/docker If this system will use NFS (locking): # zfs create -o com.sun:auto-snapshot=false \