Skip to content

Commit

Permalink
pick config or container_config, not both
Browse files Browse the repository at this point in the history
ok, so container_config must be deprecated or something, 'cause the test
image has both set. that explains that.
  • Loading branch information
vito committed Oct 1, 2018
1 parent 3ed6ba7 commit 3cf4801
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/in/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ func rootfsFormat(dest string, req InRequest, image v1.Image) {
return
}

env := append(cfg.Config.Env, cfg.ContainerConfig.Env...)
env := cfg.Config.Env
if len(env) == 0 {
env = cfg.ContainerConfig.Env
}

user := cfg.Config.User
if user == "" {
user = cfg.ContainerConfig.User
Expand Down

0 comments on commit 3cf4801

Please sign in to comment.