mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
daemon/mountVolumes: no need to specify fstype
For bind mounts, fstype argument to mount(2) is ignored. Usual convention is either empty string or "none". Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
80fce834ad
commit
4e65b17ac4
2 changed files with 1 additions and 6 deletions
|
@ -1,5 +0,0 @@
|
||||||
// +build linux freebsd
|
|
||||||
|
|
||||||
package daemon // import "github.com/docker/docker/daemon"
|
|
||||||
|
|
||||||
const bindMountType = "bind"
|
|
|
@ -142,7 +142,7 @@ func (daemon *Daemon) mountVolumes(container *container.Container) error {
|
||||||
writeMode = "rw"
|
writeMode = "rw"
|
||||||
}
|
}
|
||||||
opts := strings.Join([]string{bindMode, writeMode}, ",")
|
opts := strings.Join([]string{bindMode, writeMode}, ",")
|
||||||
if err := mount.Mount(m.Source, dest, bindMountType, opts); err != nil {
|
if err := mount.Mount(m.Source, dest, "", opts); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue