ZFS storage driver with Docker-in-Docker leaves orphaned datasets #40036
Labels
area/storage/zfs
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
When using the ZFS storage driver, Docker creates legacy ZFS datasets. These are automatically cleaned up when the container, image or volume in question is removed in Docker.
However, when using Docker-in-Docker, if the containers / images / volumes within DinD are not explicitly removed, removing the DinD container will orphan these datasets.
Steps to reproduce the issue:
zfs create -o mountpoint=/var/lib/docker -p zroot/data/docker
docker run --privileged -d docker:dind
docker system prune --all --volumes
Describe the results you received:
There are 3 ZFS datasets created by Docker.
Describe the results you expected:
There should be no ZFS datasets created by Docker.
Additional information you deem important (e.g. issue happens only occasionally):
There are no Docker daemon logs that indicate any dataset removal was attempted.
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: