|
@@ -21,8 +21,6 @@ import (
|
|
"github.com/docker/docker/pkg/system"
|
|
"github.com/docker/docker/pkg/system"
|
|
"github.com/docker/docker/runconfig"
|
|
"github.com/docker/docker/runconfig"
|
|
"github.com/docker/docker/utils"
|
|
"github.com/docker/docker/utils"
|
|
- volumedrivers "github.com/docker/docker/volume/drivers"
|
|
|
|
- "github.com/docker/docker/volume/local"
|
|
|
|
"github.com/docker/libnetwork"
|
|
"github.com/docker/libnetwork"
|
|
nwapi "github.com/docker/libnetwork/api"
|
|
nwapi "github.com/docker/libnetwork/api"
|
|
nwconfig "github.com/docker/libnetwork/config"
|
|
nwconfig "github.com/docker/libnetwork/config"
|
|
@@ -255,15 +253,6 @@ func migrateIfDownlevel(driver graphdriver.Driver, root string) error {
|
|
return migrateIfAufs(driver, root)
|
|
return migrateIfAufs(driver, root)
|
|
}
|
|
}
|
|
|
|
|
|
-func configureVolumes(config *Config) (*volumeStore, error) {
|
|
|
|
- volumesDriver, err := local.New(config.Root)
|
|
|
|
- if err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- volumedrivers.Register(volumesDriver, volumesDriver.Name())
|
|
|
|
- return newVolumeStore(volumesDriver.List()), nil
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
func configureSysInit(config *Config) (string, error) {
|
|
func configureSysInit(config *Config) (string, error) {
|
|
localCopy := filepath.Join(config.Root, "init", fmt.Sprintf("dockerinit-%s", dockerversion.VERSION))
|
|
localCopy := filepath.Join(config.Root, "init", fmt.Sprintf("dockerinit-%s", dockerversion.VERSION))
|
|
sysInitPath := utils.DockerInitPath(localCopy)
|
|
sysInitPath := utils.DockerInitPath(localCopy)
|