Skip to content

Invalid overlay2+zfs storage drive chosen on Ubuntu install #46337

@Seanny123

Description

@Seanny123

Description

As discussed on the Docker forums, when installing on Ubuntu 22.04 and following the official install instructions for Ubuntu, an invalid Storage Driver was chosen.

The output of journalctl -e -u docker showed no errors on boot:

Aug 26 08:55:17 flatsky systemd[1]: Starting Docker Application Container Engine...
Aug 26 08:55:17 flatsky dockerd[5208]: time="2023-08-26T08:55:17.133673551-04:00" level=info msg="Starting up"
Aug 26 08:55:17 flatsky dockerd[5208]: time="2023-08-26T08:55:17.135422053-04:00" level=info msg="detected 127.0.0.53 nameserver, assuming systemd-resolved, so using resolv.conf: /run/systemd/resolve/reso>
Aug 26 08:55:22 flatsky dockerd[5208]: time="2023-08-26T08:55:22.245966109-04:00" level=info msg="[graphdriver] using prior storage driver: overlay2"
Aug 26 08:55:22 flatsky dockerd[5208]: time="2023-08-26T08:55:22.256373226-04:00" level=info msg="Loading containers: start."
Aug 26 08:55:22 flatsky dockerd[5208]: time="2023-08-26T08:55:22.704598518-04:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to >
Aug 26 08:55:22 flatsky dockerd[5208]: time="2023-08-26T08:55:22.733618381-04:00" level=info msg="Loading containers: done."
Aug 26 08:55:22 flatsky dockerd[5208]: time="2023-08-26T08:55:22.758408473-04:00" level=info msg="Docker daemon" commit=a61e2b4 graphdriver=overlay2 version=24.0.5
Aug 26 08:55:22 flatsky dockerd[5208]: time="2023-08-26T08:55:22.758751941-04:00" level=info msg="Daemon has completed initialization"
Aug 26 08:55:22 flatsky dockerd[5208]: time="2023-08-26T08:55:22.878648289-04:00" level=info msg="API listen on /run/docker.sock"
Aug 26 08:55:22 flatsky systemd[1]: Started Docker Application Container Engine.
Aug 26 09:00:01 flatsky dockerd[5208]: 2023/08/26 09:00:01 http2: server: error reading preface from client @: read unix /run/docker.sock->@: read: connection reset by peer
Aug 26 09:00:01 flatsky dockerd[5208]: time="2023-08-26T09:00:01.653909086-04:00" level=warning msg="no trace recorder found, skipping"

Reproduce

On a Ubuntu 22.04 system using the ZFS filesystem, install following the official guide. I can provide further details about my system if desired.

Expected behavior

On install, Docker should be configured with the ZFS device driver by default, since overlayfs2 does not support the ZFS filesystem currently.

docker version

Client: Docker Engine - Community
 Version:           24.0.5
 API version:       1.43
 Go version:        go1.20.6
 Git commit:        ced0996
 Built:             Fri Jul 21 20:35:18 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          24.0.5
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.6
  Git commit:       a61e2b4
  Built:            Fri Jul 21 20:35:18 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.22
  GitCommit:        8165feabfdfe38c65b599c4993d227328c231fca
 runc:
  Version:          1.1.8
  GitCommit:        v1.1.8-0-g82f18fe
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client: Docker Engine - Community
 Version:    24.0.5
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.11.2
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.20.2
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
...
 Server Version: 24.0.5
 Storage Driver: overlay2
  Backing Filesystem: zfs
  Supports d_type: true
  Using metacopy: false

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions