docker build image from docker hub code example
Example 1: how to build docker image
docker build <Dockerfile path> -t image-name
Example 2: docker images command
docker images
NOTE:
To see which images are present locally, use the "docker images" command:
REPOSITORY TAG IMAGE ID CREATED SIZE
debian jessie f50f9524513f 5 days ago 125.1 MB
debian latest f50f9524513f 5 days ago 125.1 MB