Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Instruction ENTRYPOINT

Summary

ENTRYPOINT <command> [...<arg>]

Build-time instruction

The ENTRYPOINT instructions only affects running a container, not building a container.

This instruction sets the entrypoint for the container, which is used when running commands in it.

The default value is ["/bin/sh", "-c"].

See the CMD instruction for details, including the relationship between ENTRYPOINT and CMD.