mirror of https://github.com/docker/docs.git
Remove unused function `Container.getImage`.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
6ea9a880dc
commit
89decc4446
|
@ -20,7 +20,6 @@ import (
|
||||||
"github.com/docker/docker/daemon/logger/jsonfilelog"
|
"github.com/docker/docker/daemon/logger/jsonfilelog"
|
||||||
"github.com/docker/docker/daemon/network"
|
"github.com/docker/docker/daemon/network"
|
||||||
derr "github.com/docker/docker/errors"
|
derr "github.com/docker/docker/errors"
|
||||||
"github.com/docker/docker/image"
|
|
||||||
"github.com/docker/docker/pkg/archive"
|
"github.com/docker/docker/pkg/archive"
|
||||||
"github.com/docker/docker/pkg/broadcaster"
|
"github.com/docker/docker/pkg/broadcaster"
|
||||||
"github.com/docker/docker/pkg/fileutils"
|
"github.com/docker/docker/pkg/fileutils"
|
||||||
|
@ -286,13 +285,6 @@ func (container *Container) Resize(h, w int) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (container *Container) getImage() (*image.Image, error) {
|
|
||||||
if container.daemon == nil {
|
|
||||||
return nil, derr.ErrorCodeImageUnregContainer
|
|
||||||
}
|
|
||||||
return container.daemon.graph.Get(container.ImageID)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (container *Container) hostConfigPath() (string, error) {
|
func (container *Container) hostConfigPath() (string, error) {
|
||||||
return container.getRootResourcePath("hostconfig.json")
|
return container.getRootResourcePath("hostconfig.json")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue