How-to Getting-Started with Docker Containers on Mac 10.12 Sierra Shell

Docker Containers QuickStart for MacOS 10.12 Sierra

Hello Mac User! This Tutorial Shows You Step-by-Step How-to Getting-Started with Docker Containers Management on Mac OS X 10.12 Sierra.

Docker is a Client and Server App that makes it easy to utilize Linux Containers by providing a Standard Format for Building and Sharing those Containers.

The Docker Client is a Shell Tool that allows you to Interact with the Docker daemon by the Docker API.

A Container (UNIX technology) is a Modified Runtime Environment for a program that prevents that program from accessing protected resources except where explicitly allowed.

Linux Containers provide also the necessary Isolation between Apps to Eliminate Conflicts between runtime Dependencies and Configurations.

  1. How-to Install Docker on MacOS Easy Guide

    Mac Docker Installation Guide
  2. Login as SuperUser
    The default Docker Administration Requires this Privileges…

    Then to Achieve this Session:

  3. Exploring Docker Commands

    To Display Help for a single Command:

    Example for the create command:

  4. How-to Create Docker Containers
    We’ll Pull the Docker Images from the Docker Repositories.
    (Although it’s possible to Install a Local Docker Image…)

    This Create a Redis DB Image Named ‘redis’
    The -p Flag is related to the Connecting Port
    The -d Flag Detach the Instance and Run it on Background.

  5. To List the Docker Instance
    To List All:

    And only the Running ones:

  6. To Run Docker Containers
    By ID:

    By Names:


    The Create & Run All-in-one Command Instead is:

  7. To Stop & Kill Docker Containers
    By ID:

    By Names:


  8. Remove/Delete a Docker Containers

    For Instance: