Getting started with basic docker commands

What is Docker?

Package Software into Standardized Units for Development, Shipment, and Deployment

Get started with basic Docker commands:

1. Build an image from the docker file
  docker build [OPTIONS] PATH | URL | –
2. Images: Once the build is done the image can be viewed by the command as follows
    docker images
3. Docker run
$ docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]
For example docker run hello-world
docker run redis
4.  List the docker processes that are running currently.
docker ps
To list all the docker images in the machine:
docker ps -a
To stop running all containers
docker ps -aq
To remove containers
docker rmi
Â