Run a throwaway interactive container
Opens a shell in a new container that is deleted as soon as you exit.
docker run --rm -it alpine shEdit 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.