Commit 7e433ac9 authored by nimrod's avatar nimrod
Browse files

Ansible: Use the overlay2 Docker storage driver.

The btrfs driver is buggy (see
https://github.com/moby/moby/issues/27653). I've had to deal with this
several times now and mostly on ns4 (where most of the CI jobs run).
Keep the btrfs partitions (snapshots make backups easier) but use the
`overlay2` storage driver to avoid to dangling subvolumes.
parent de93b1e2
Loading
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -20,6 +20,16 @@
  notify:
    - Update GRUB

- name: Configure the Docker daemon
  ansible.builtin.copy:
    content: "{{ docker_daemon_config | to_nice_json }}"
    dest: /etc/docker/daemon.json
    group: root
    mode: 0o0600
    owner: root
  notify:
    - Restart Docker

- name: Copy the script to start stopped container after a restart
  ansible.builtin.copy:
    dest: /usr/share/docker.io/restart-containers
+3 −0
Original line number Diff line number Diff line
@@ -58,3 +58,6 @@ toolbox_distros_without_apt_package:
  - hera
  - odin
  - jolnir

docker_daemon_config:
  storage-driver: overlay2