fix wrong return error

Upstream-commit: 44d0f941f287d5dcf6212216b7c0b72b085bdb1a
Component: engine
This commit is contained in:
Victor Vieux
2013-09-10 17:16:59 +00:00
parent c0f4a2ef7d
commit 007dc4770c

View File

@ -648,7 +648,7 @@ func (container *Container) Start(hostConfig *HostConfig) error {
continue
}
if err := os.MkdirAll(path.Join(container.RootfsPath(), volPath), 0755); err != nil {
return nil
return err
}
container.Volumes[volPath] = id
if isRW, exists := c.VolumesRW[volPath]; exists {