dockergc: storage driver support limited to overlay2
@@ -57,7 +57,9 @@ var (
docker will still be used to do builds. However OpenShift itself may not
manage the docker storage since it is not the container runtime for pods.
- This utility allows garbage collection to do be done on the docker storage.`)
+ This utility allows garbage collection to do be done on the docker storage.
+
+ Only the overlay2 docker storage driver is supported at this time.`)
dockerGC_example = templates.Examples(`
# Perform garbage collection with the default settings
@@ -252,6 +254,9 @@ func Run(f *clientcmd.Factory, options *dockerGCConfigCmdOptions, cmd *cobra.Com
if err != nil {
return err
}
+ if info.Driver != "overlay2" {
+ return fmt.Errorf("%s storage driver is not supported", info.Driver)
+ }
rootDir := info.DockerRootDir
if rootDir == "" {
return fmt.Errorf("unable to determine docker root directory")
