mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Mkdir for lxc root dir before setup of symlink
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
f3fc857e01
commit
246cab90f2
1 changed files with 3 additions and 0 deletions
|
@ -49,6 +49,9 @@ type activeContainer struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewDriver(root, initPath string, apparmor bool) (*driver, error) {
|
func NewDriver(root, initPath string, apparmor bool) (*driver, error) {
|
||||||
|
if err := os.MkdirAll(root, 0700); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
// setup unconfined symlink
|
// setup unconfined symlink
|
||||||
if err := linkLxcStart(root); err != nil {
|
if err := linkLxcStart(root); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Add table
Reference in a new issue