diff options
author | Cory Snider <csnider@mirantis.com> | 2022-09-23 12:25:19 -0400 |
---|---|---|
committer | Cory Snider <csnider@mirantis.com> | 2022-09-23 16:56:49 -0400 |
commit | 95824f2b5f44cd90096c865b093ed9a68342377a (patch) | |
tree | 93f91a341d67c7927b5ab5a53b76b8e804284a9c /daemon/daemon.go | |
parent | be4f4644a8ebb940f0d68dc66f59327a74775ad6 (diff) | |
download | docker-95824f2b5f44cd90096c865b093ed9a68342377a.tar.gz |
pkg/containerfs: simplify ContainerFS type
Iterate towards dropping the type entirely.
Signed-off-by: Cory Snider <csnider@mirantis.com>
Diffstat (limited to 'daemon/daemon.go')
-rw-r--r-- | daemon/daemon.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/daemon.go b/daemon/daemon.go index bb38689fc1..398637f3b8 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -1270,7 +1270,7 @@ func (daemon *Daemon) Mount(container *container.Container) error { } logrus.WithField("container", container.ID).Debugf("container mounted via layerStore: %v", dir) - if container.BaseFS != nil && container.BaseFS.Path() != dir.Path() { + if container.BaseFS != "" && container.BaseFS != dir { // The mount path reported by the graph driver should always be trusted on Windows, since the // volume path for a given mounted layer may change over time. This should only be an error // on non-Windows operating systems. |