github.com/gunjan5/docker@v1.8.2/daemon/daemon_aufs.go (about) 1 // +build !exclude_graphdriver_aufs,linux 2 3 package daemon 4 5 import ( 6 "github.com/Sirupsen/logrus" 7 "github.com/docker/docker/daemon/graphdriver" 8 "github.com/docker/docker/daemon/graphdriver/aufs" 9 ) 10 11 // Given the graphdriver ad, if it is aufs, then migrate it. 12 // If aufs driver is not built, this func is a noop. 13 func migrateIfAufs(driver graphdriver.Driver, root string) error { 14 if ad, ok := driver.(*aufs.Driver); ok { 15 logrus.Debugf("Migrating existing containers") 16 if err := ad.Migrate(root, setupInitLayer); err != nil { 17 return err 18 } 19 } 20 return nil 21 }