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>
| ... | ... |
@@ -142,7 +142,7 @@ func (daemon *Daemon) mountVolumes(container *container.Container) error {
|
| 142 | 142 |
writeMode = "rw" |
| 143 | 143 |
} |
| 144 | 144 |
opts := strings.Join([]string{bindMode, writeMode}, ",")
|
| 145 |
- if err := mount.Mount(m.Source, dest, bindMountType, opts); err != nil {
|
|
| 145 |
+ if err := mount.Mount(m.Source, dest, "", opts); err != nil {
|
|
| 146 | 146 |
return err |
| 147 | 147 |
} |
| 148 | 148 |
|