mirror of https://github.com/docker/docs.git
Merge pull request #3743 from pmorie/typo
Fix typo in comment in container.go
This commit is contained in:
commit
f948820d03
|
@ -897,7 +897,7 @@ func (container *Container) createVolumes() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// Change the source volume's ownership if it differs from the root
|
// Change the source volume's ownership if it differs from the root
|
||||||
// files that where just copied
|
// files that were just copied
|
||||||
if stat.Uid != srcStat.Uid || stat.Gid != srcStat.Gid {
|
if stat.Uid != srcStat.Uid || stat.Gid != srcStat.Gid {
|
||||||
if err := os.Chown(srcPath, int(stat.Uid), int(stat.Gid)); err != nil {
|
if err := os.Chown(srcPath, int(stat.Uid), int(stat.Gid)); err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -925,7 +925,7 @@ func (container *Container) applyExternalVolumes() error {
|
||||||
mountRW = false
|
mountRW = false
|
||||||
case "rw": // mountRW is already true
|
case "rw": // mountRW is already true
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("Malformed volumes-from speficication: %s", containerSpec)
|
return fmt.Errorf("Malformed volumes-from specification: %s", containerSpec)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
c := container.runtime.Get(specParts[0])
|
c := container.runtime.Get(specParts[0])
|
||||||
|
|
Loading…
Reference in New Issue