nanovms / ops

ops - build and run nanos unikernels
https://ops.city
MIT License
1.27k stars 132 forks source link

pkg(from-docker): reset/overwrite docker image Entrypoint #1401

Closed rinor closed 1 year ago

eyberg commented 1 year ago

hi @rinor - can you provide some background on what you're wanting to do here?

rinor commented 1 year ago

If the docker image has configured an Entrypoint command, our ops command Cmd will be appended to that and we will end up executing

Entrypoint_command Cmd_ops_command that will be interpreted as args to entrypoint and starting the container may fail and the whole process fails.

Here I’m resetting the Entrypoint command (present or not) so we start the container with only ops needed Cmd

ex: ops pkg from-docker balabit/syslog-ng:latest -f syslog-ng --verbose -n syslog-ng will fail.

eyberg commented 1 year ago

ok thanks!