buildpacks / imgutil

Helpful utilities for working with images
Apache License 2.0
24 stars 41 forks source link

Use DriverStatus to check if containerd is used #231

Closed rumpl closed 10 months ago

rumpl commented 10 months ago

:wave: I stumbled on this code while reading https://github.com/moby/moby/issues/46746

This change looks at the DriverStatus that contains a "driver-type" equal to "io.containerd.snapshotter.v1" if the daemon uses containerd for storing images, this is slightly better than looking at the Driver. The Driver is "stargz" by default on Docker Desktop but a user can change this default value, they could use "overlayfs" for example, or any other containerd snapshotter.

@natalieparellano @jabrown85