This playground demonstrates Docker using the Btrfs storage driver.
Use it to experiment with running Docker on Btrfs (instead of the default overlay2
):
lsblk
, docker info
, btrfs filesystem show
, etc.)btrfs filesystem usage
)btrfs send/receive
.The playground's single VM is an Ubuntu Server with Docker Engine preinstalled. It has four drives:
/dev/vda
./dev/vdb
and /dev/vdc
form a multi-device Btrfs filesystem./var/lib/docker
(Docker's data-root)./dev/vdd
) is unused and available to grow the Btrfs filesystem.lsblk
NAME
MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
vda 254:0 0 10G 0 disk /
vdb 254:16 0 15G 0 disk /var/lib/docker/btrfs
/var/lib/docker
vdc 254:32 0 15G 0 disk
vdd 254:48 0 10G 0 disk
Initial Btrfs filesystem configuration:
sudo btrfs filesystem show
Label: none uuid: 1739f1bd-af61-43a5-b9ad-65921c9a50a4
Total devices 2 FS bytes used 144.00KiB
devid 1 size 15.00GiB used 272.00MiB path /dev/vdb
devid 2 size 15.00GiB used 264.00MiB path /dev/vdc
The Docker daemon is already configured to use Btrfs:
cat /etc/docker/daemon.json
{
"storage-driver": "btrfs",
...other options
}
To grow the filesystem without restarting the Docker daemon (and any running containers):
sudo btrfs device add /dev/vdd /var/lib/docker
sudo btrfs filesystem balance start /var/lib/docker
sudo btrfs filesystem show
This playground demonstrates Docker using the Btrfs storage driver.
Use it to experiment with running Docker on Btrfs (instead of the default overlay2
):
lsblk
, docker info
, btrfs filesystem show
, etc.)btrfs filesystem usage
)btrfs send/receive
.The playground's single VM is an Ubuntu Server with Docker Engine preinstalled. It has four drives:
/dev/vda
./dev/vdb
and /dev/vdc
form a multi-device Btrfs filesystem./var/lib/docker
(Docker's data-root)./dev/vdd
) is unused and available to grow the Btrfs filesystem.lsblk
NAME
MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
vda 254:0 0 10G 0 disk /
vdb 254:16 0 15G 0 disk /var/lib/docker/btrfs
/var/lib/docker
vdc 254:32 0 15G 0 disk
vdd 254:48 0 10G 0 disk
Initial Btrfs filesystem configuration:
sudo btrfs filesystem show
Label: none uuid: 1739f1bd-af61-43a5-b9ad-65921c9a50a4
Total devices 2 FS bytes used 144.00KiB
devid 1 size 15.00GiB used 272.00MiB path /dev/vdb
devid 2 size 15.00GiB used 264.00MiB path /dev/vdc
The Docker daemon is already configured to use Btrfs:
cat /etc/docker/daemon.json
{
"storage-driver": "btrfs",
...other options
}
To grow the filesystem without restarting the Docker daemon (and any running containers):
sudo btrfs device add /dev/vdd /var/lib/docker
sudo btrfs filesystem balance start /var/lib/docker
sudo btrfs filesystem show
Pro Tip: Install iximiuz Labs CLI to start playgrounds and SSH into them from your favorite local terminal:
curl -sf https://labs.iximiuz.com/cli/install.sh | sh