Fixes bug where rootfs was empty instead of pwd when not specified.

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2015-02-18 21:36:04 -08:00
parent d06a2dab9f
commit 4d863b7bd0
1 changed files with 5 additions and 1 deletions

View File

@ -86,7 +86,11 @@ func modify(config *configs.Config, context *cli.Context) {
config.AppArmorProfile = context.String("apparmor-profile")
config.ProcessLabel = context.String("process-label")
config.MountLabel = context.String("mount-label")
config.Rootfs = context.String("rootfs")
rootfs := context.String("rootfs")
if rootfs != "" {
config.Rootfs = rootfs
}
userns_uid := context.Int("userns-root-uid")
if userns_uid != 0 {