Docker Environment Setup and Installation

To use Docker, you need to configure the environment and install it.

Docker Environment

To create a study environment, you can either install Docker in a local environment or use an online playground.

If installing in a local environment, download it from the following page.

For the online playground, refer to the following page.

Installing Docker Engine

First, install Docker. Docker supports major OSes such as Linux, Windows, and Mac. Install it using the method that matches your environment.

Install on Linux

The installation method differs by distribution. Refer to the Linux distribution installation method in the official documentation.

Install on Windows

The installation method differs depending on the Windows version. You can install it by running the appropriate installer.

Note: Docker Ver. 1.12.0 supports Hyper-V, a hypervisor virtual environment supported on Windows 8 or later. On Windows 10, Docker can be used on a hypervisor-type virtual machine provided by the OS. Before that, Docker Toolbox had to be used to install Docker Engine on Linux in VirtualBox and access it from the host command-line tools.

Install on Mac OS

On OS X Yosemite 10.10.3 or later, you can install Docker CE for Mac. Before that, a tool called Docker Toolbox is provided.

Note: Docker Ver. 1.12.0 supports HyperKit, a hypervisor virtual environment supported on OS X Yosemite or later. This made it possible to use Docker on a hypervisor-type virtual machine provided by the OS on OS X 10.10 Yosemite or later. Before that, as with versions before Windows 8, Docker Toolbox was used.

Installation Test

After installation, check whether the daemon is running with the following command. If it does not display output, the installation failed. Refer to the documentation again.

% docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

Execution Environment Used in This Material

In this material, the sample articles were tested in the following environments.

  • Linux
    • OS: Ubuntu Server 16.04 LTS
    • Instance type: m4.large
    • Docker: 17.03.1-ce
  • Mac
    • OS: Mac OS 11.4 (Big Sur)
    • CPU: 2.3 GHz 8 Core Intel Core i9
    • Memory: 16 GB
    • Docker: 17.04.0-ce (Docker for Mac)
  • Windows
    • OS: Windows 7 64bit
    • CPU: Intel Core i3-3120M CPU 2.50GHz 2.50Hz
    • Memory: 16 GB
    • Docker: 17.04.0-ce (Docker Toolbox)