Merge pull request #387 from mrunalp/rootfs_config

Fixes bug where rootfs was empty instead of pwd when not specified.
This commit is contained in:
Rohit Jnagal 2015-02-19 08:27:22 -08:00
commit 8c3b6b1868
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 {