Check out example codes for "How to pull images from Docker Registry". It will help you in understanding the concepts better.

Code Example 1

docker pull ubuntu:14.04

docker pull ubuntu
docker pull fedora

NOTE:
Docker Hub contains many pre-built images that you can pull
docker pull <Image>:<tag>
docker pull <Image>

Learn ReactJs, React Native from akashmittal.com