summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchsetup9
1 files changed, 9 insertions, 0 deletions
diff --git a/archsetup b/archsetup
index 2f75055..17a7163 100755
--- a/archsetup
+++ b/archsetup
@@ -1457,6 +1457,15 @@ developer_workstation () {
pacman_install docker-compose
action="adding user to docker group" && display "task" "$action"
(gpasswd -a "$username" docker >> "$logfile" 2>&1) || error "error" "$action" "$?"
+ if is_zfs_root; then
+ action="configuring docker to use ZFS storage driver" && display "task" "$action"
+ mkdir -p /etc/docker
+ cat > /etc/docker/daemon.json << 'EOF'
+{
+ "storage-driver": "zfs"
+}
+EOF
+ fi
action="enabling docker service to launch on boot" && display "task" "$action"
systemctl enable docker.service >> "$logfile" 2>&1 || error "error" "$action" "$?"
}