##Docker Basic Commands:
-------------------------
Instantiate a container using ‘docker container run ’ command and learn options and flags associated with
docker container run [OPTION1 OPTION2 … OPTIONn ] [ Image]:[TAG] [COMMAND] [
IMAGE : Docker
TAG : Run specific version of an
COMMAND : Command to run inside the
ARGUMENT : Arguments for the COMMAND.
##Run Container:
-----------------
docker run hello world
docker container run hello world ( Recommended way
docker run nginx
docker container run nginx ( Recommended way
##Run a container with COMMAND and ARGUMENT:
-----------------------------------------------
docker run busybox echo Hello Students!
echo: Command run inside the busybox container.
Hello Students!: Argument for the Command.
##List all containers (Running and stopped)
-------------------------------------------
docker ps a
a: All
##Remove a stopped container:
----------------------------
docker rm [Container ID]