runlike icon indicating copy to clipboard operation
runlike copied to clipboard

override inspected options with CLI options

Open lavie opened this issue 6 years ago • 2 comments

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.

lavie avatar Oct 08 '17 01:10 lavie

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

uuf6429 avatar Jul 25 '18 16:07 uuf6429

But wouldn't you need to figure out uniqueness when supplying the overrides with -o?

lavie avatar Aug 01 '18 04:08 lavie