Basic Commands
docker run --rm [OPTIONS] IMAGE [COMMAND] [ARGS]
Run a COMMAND with specific ARGS in a new container.
OPTIONS
◎ --detach, -d Run container in background and print container ID
◎ --env, -e Set environment variables
◎ --interactive, -i Keep STDIN open
◎ --name Assign a name to the container
◎ --publish, -p Publish a container’s port(s) to the host
◎ --rm Automatically remove the container when it exits
◎ --tty, -t Allocate a pseudo-TTY
◎ --volume, -v Bind mount a volume
20