Run default command in Docker container then remove container
11 March 2022 (Updated 13 May 2022)
docker container run --rm <image>
This will spin up a container based on <image>
, run its default command and then remove the container when the command terminates.
Tagged:
Docker