1. Basic Usage

1.2. Pulling from Docker Hub

  • Only pull

  • Will not run

$ docker pull IMAGE_NAME

1.3. Operating system images

1.3.1. Alpine

  • Image size is 5.53 MB

  • Edge is the newest version

$ docker pull alpine

1.3.2. Debian

$ docker pull debian

1.3.3. Ubuntu

$ docker pull ubuntu:18.04
$ docker pull ubuntu:latest
$ docker pull ubuntu          # will pull latest

1.4. Where docker store containers

  • /var/lib/docker/containers

$ docker info |grep 'Docker Root Dir'
Docker Root Dir: /var/lib/docker