summaryrefslogtreecommitdiff
path: root/daemon/daemon.go
diff options
context:
space:
mode:
authorCory Snider <csnider@mirantis.com>2022-09-23 12:25:19 -0400
committerCory Snider <csnider@mirantis.com>2022-09-23 16:56:49 -0400
commit95824f2b5f44cd90096c865b093ed9a68342377a (patch)
tree93f91a341d67c7927b5ab5a53b76b8e804284a9c /daemon/daemon.go
parentbe4f4644a8ebb940f0d68dc66f59327a74775ad6 (diff)
downloaddocker-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.go2
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.