Is there any way to set ENTRYPOINT for an oci container without rebuilding it with docker?

When I try to run an oci container with incus that requires additional arguments to the binary specified in config.Process.Args, I can’t find a way to append that arguments without editing the config.json manually or rebuilding the Image entirely.

If config.Process.Args is something else than init, the specified binary runs to completion and the container exits. In the case of, for instance, keycloak from quay or OpenTofu from ghcr, it exits throwing an error about a missing process:

Error: stat /proc/-1: no such file or directory

Similar to this discussion..

So, is there a way to provide the necessary parameters at launch time and, on a side note, why would hello-world from docker not throw the same error?

There is a workaround Docker OCI Parameter Passing Incus 6.3 - #22 by abiosoft.

1 Like