set args value of process if args is nil#2544
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2544 +/- ##
=======================================
Coverage 44.59% 44.59%
=======================================
Files 95 95
Lines 10007 10007
=======================================
Hits 4463 4463
Misses 4822 4822
Partials 722 722
Continue to review full report at Codecov.
|
|
This is a very specific case. I think we shouldn't run any Opts on the spec if the user is providing one via |
|
@crosbymichael , but if the content of spec config file which the user provided is Incomplete, such as lack of |
|
if you provide a spec that is incomplete, then it's incomplete. The whole point of --config on run is to explicitly set the container's config because you know what you are doing and you don't want any modifications made to it. |
|
@crosbymichael PTAL |
There was a problem hiding this comment.
can you remove the whitespace and then this LGTM
Signed-off-by: kadisi <[email protected]>
|
@crosbymichael PTAL, thank you |
|
LGTM |
Signed-off-by: kadisi [email protected]
if i create container with this commond:
and
ctr.jsoncontent is :the args is
"sleep", "100000"and then start container
ctr task start busyboxi found the args in container status (/run/containerd/io.containerd.runtime.v1.linux/default/busybox/config.json) is
shi think if the
argsis not nil in the runtime-specific spec config file, we should use the spec config file args values , not image config`s cmd and entrypoint.