|
@@ -7,7 +7,6 @@ import (
|
|
|
|
|
|
"github.com/Sirupsen/logrus"
|
|
"github.com/Sirupsen/logrus"
|
|
"github.com/docker/docker/api/types"
|
|
"github.com/docker/docker/api/types"
|
|
- "github.com/docker/docker/autogen/dockerversion"
|
|
|
|
"github.com/docker/docker/pkg/fileutils"
|
|
"github.com/docker/docker/pkg/fileutils"
|
|
"github.com/docker/docker/pkg/parsers/kernel"
|
|
"github.com/docker/docker/pkg/parsers/kernel"
|
|
"github.com/docker/docker/pkg/parsers/operatingsystem"
|
|
"github.com/docker/docker/pkg/parsers/operatingsystem"
|
|
@@ -15,6 +14,7 @@ import (
|
|
"github.com/docker/docker/pkg/system"
|
|
"github.com/docker/docker/pkg/system"
|
|
"github.com/docker/docker/registry"
|
|
"github.com/docker/docker/registry"
|
|
"github.com/docker/docker/utils"
|
|
"github.com/docker/docker/utils"
|
|
|
|
+ "github.com/docker/docker/version"
|
|
)
|
|
)
|
|
|
|
|
|
// SystemInfo returns information about the host server the daemon is running on.
|
|
// SystemInfo returns information about the host server the daemon is running on.
|
|
@@ -83,14 +83,14 @@ func (daemon *Daemon) SystemInfo() (*types.Info, error) {
|
|
OperatingSystem: operatingSystem,
|
|
OperatingSystem: operatingSystem,
|
|
IndexServerAddress: registry.IndexServer,
|
|
IndexServerAddress: registry.IndexServer,
|
|
RegistryConfig: daemon.RegistryService.Config,
|
|
RegistryConfig: daemon.RegistryService.Config,
|
|
- InitSha1: dockerversion.INITSHA1,
|
|
|
|
|
|
+ InitSha1: version.INITSHA1,
|
|
InitPath: initPath,
|
|
InitPath: initPath,
|
|
NCPU: runtime.NumCPU(),
|
|
NCPU: runtime.NumCPU(),
|
|
MemTotal: meminfo.MemTotal,
|
|
MemTotal: meminfo.MemTotal,
|
|
DockerRootDir: daemon.config().Root,
|
|
DockerRootDir: daemon.config().Root,
|
|
Labels: daemon.config().Labels,
|
|
Labels: daemon.config().Labels,
|
|
ExperimentalBuild: utils.ExperimentalBuild(),
|
|
ExperimentalBuild: utils.ExperimentalBuild(),
|
|
- ServerVersion: dockerversion.VERSION,
|
|
|
|
|
|
+ ServerVersion: version.VERSION,
|
|
ClusterStore: daemon.config().ClusterStore,
|
|
ClusterStore: daemon.config().ClusterStore,
|
|
}
|
|
}
|
|
|
|
|