runlike
runlike copied to clipboard
override inspected options with CLI options
e.g. if running with runlike -i ...
then make the command output -i
, even if inspected container runs in daemon mode
relevant for -i, -d, -t... and probably several other options.
I'd suggest having one generic way to inject this stuff to keep changes to a minimum and a consistent API, eg -o "--env key=value"
. The difficulty would be that you need to make intelligent enough to figure out uniqueness. Eg;
-
--detach=true
should override--detach=false
-
--env key2=val
should not override--env key=val
-
--env key=val2
should override--env key=val
But wouldn't you need to figure out uniqueness when supplying the overrides with -o
?