Skip to content

Commit 1a49c29

Browse files
committed
exclude system dirs
1 parent a0b56e7 commit 1a49c29

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/services/provision/docker/docker.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ func buildMountVolumes(r runners.Runner, c *resources.AppConfig, containerID str
109109
}
110110

111111
for _, mount := range mounts {
112+
// Exclude system volumes from a clone container.
113+
if isSystemVolume(mount.Source) {
114+
continue
115+
}
116+
112117
volume := fmt.Sprintf("--volume %s:%s", mount.Source, mount.Target)
113118

114119
if mount.BindOptions != nil && mount.BindOptions.Propagation != "" {

0 commit comments

Comments
 (0)