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
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment