mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
Merge pull request #1479 from justincormack/command
Revert Command->Args but remove from yaml where not needed
This commit is contained in:
commit
69b96d3aa7
@ -45,7 +45,7 @@ type MobyImage struct {
|
|||||||
Mounts []specs.Mount
|
Mounts []specs.Mount
|
||||||
Binds []string
|
Binds []string
|
||||||
Tmpfs []string
|
Tmpfs []string
|
||||||
Args []string
|
Command []string
|
||||||
Env []string
|
Env []string
|
||||||
Cwd string
|
Cwd string
|
||||||
Net string
|
Net string
|
||||||
@ -95,8 +95,8 @@ func ConfigToOCI(image *MobyImage) ([]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
args := append(config.Entrypoint, config.Cmd...)
|
args := append(config.Entrypoint, config.Cmd...)
|
||||||
if len(image.Args) != 0 {
|
if len(image.Command) != 0 {
|
||||||
args = image.Args
|
args = image.Command
|
||||||
}
|
}
|
||||||
env := config.Env
|
env := config.Env
|
||||||
if len(image.Env) != 0 {
|
if len(image.Env) != 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user