Merge pull request #1479 from justincormack/command

Revert Command->Args but remove from yaml where not needed
This commit is contained in:
Justin Cormack 2017-04-04 10:49:32 +01:00 committed by GitHub
commit 69b96d3aa7

View File

@ -45,7 +45,7 @@ type MobyImage struct {
Mounts []specs.Mount
Binds []string
Tmpfs []string
Args []string
Command []string
Env []string
Cwd string
Net string
@ -95,8 +95,8 @@ func ConfigToOCI(image *MobyImage) ([]byte, error) {
}
args := append(config.Entrypoint, config.Cmd...)
if len(image.Args) != 0 {
args = image.Args
if len(image.Command) != 0 {
args = image.Command
}
env := config.Env
if len(image.Env) != 0 {