Override the image entrypoint
Starts the container with another program instead of the image's default entrypoint, which helps debug images.
docker run --rm -it --entrypoint sh imageEdit the highlighted values, then copy. They are inserted as typed, without shell escaping.
Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/docker-container-run.md), licensed under CC BY 4.0.