Welcome to the Linux Foundation Forum!

Overriding container entrypoint at runtime

Posts: 7
edited August 2020 in LFS253 Class Forum

In Building Container Images there is a statement

  1. But the executable/command provided during the build time cannot be overridden at runtime.

As far as I know we can use --entrypoint option to do exactly this at runtime - override the entrypoint that was given during build. Is it a mistake?

Comments

  • Posts: 2,443

    Hi @dzhigalin,

    As opposed to RUN which is a buildtime instruction, both CMD and ENTRYPOINT are runtime instructions that provide or modify runtime commands and arguments, achieved as you mentioned above with the --entrypoint flag.

    Regards,
    -Chris

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training