Install Docker Quickstart Terminal

Why Docker?

Docker is an open platform that can be used to deploy applications in isolated, secure containers. Docker containers are lightweight, simple to configure and work consistently in diverse IT environments. Most Bitnami applications are available as Docker containers and offer all the usual Bitnami benefits: security, optimization, consistency and frequent updates.

Install Docker Toolbox in Windows

For Windows 7 (and higher) users, Docker provides Docker Toolbox, an installer that includes everything needed to configure and launch a Docker environment. Docker Toolbox allows you to deploy development containers in legacy Windows systems that do not meet the requirements of the new Docker for Windows application.

Docker Toolbox contains the following tools:

Install Docker Toolbox by double-clicking the package or by right-clicking and choosing “Open” from the pop. Remove the Docker Quickstart Terminal. Docker Container Platform for Windows articles and blog posts on the Docker website. Install Docker Desktop on Windows. Double-click Docker Desktop Installer.exe to run the installer. If you haven’t already downloaded the installer (Docker Desktop Installer.exe), you can get it from Docker Hub.

  • Double click on Docker Quickstart icon, then you would see the below docker terminal (docker interactive shell). Verification: To verify the installation, check the docker version ( docker –version ), then you would see the installed docker version as a result.
  • DataHub Quickstart Guide Deploying DataHub# To deploy a new instance of DataHub, perform the following steps. Install docker and docker-compose (if using Linux). Make sure to allocate enough hardware resources for Docker engine. Tested & confirmed config: 2 CPUs, 8GB RAM, 2GB Swap area. Launch the Docker Engine from command line or the desktop app.
  • Docker Machine
  • Docker Engine
  • Docker Compose
  • Kinematic
  • Docker Quickstart Terminal App
  • Oracle VirtualBox

Prerequisites

Your Windows system must meet the following minimum requirements:

  • 64-bit Windows 7 (or higher)
  • Virtualization enabled

Step 1: Check system configuration

The first step is to check if your system configuration meets the requirements needed for running the installer successfully.

Check Windows version

Docker Toolbox requires 64-bit Windows 7 (or higher). There are many ways to verify if your machine meets these requirements.

Check OS version in Windows 10

Install Docker Quickstart Terminal Online

  • Type “Settings” in the Windows Search Box and select “System -> About”.
  • Find your Edition and Version under your PC name.
  • Look “System type” to check if you are running a 32-bit or 64-bit version of Windows.
Check OS version in Windows 7 and 8
  • Go to “Control Panel -> System and Security -> System”. Check the Windows Edition and System Type.

Find more information about how to check your Windows operating system.

Enable hardware-assisted virtualization

Enabling hardware-assisted virtualization is mandatory for installing Docker Toolbox.

Hardware-assisted virtualization in Windows 8 or higher

You can check if your system supports this technology in two different ways.

  • Using the Windows Task Manager:

    • Type “Task Manager” in the Windows Search Box.
    • Click “Performance” tab. Look under “CPU” to find out if virtualization is enabled or not.
  • Using the Windows Command Prompt:

    • Type “Command Prompt” in the Windows Search Box.

    • Right-click to open the options menu. Select “Run as administrator”.

    • Navigate to the C: drive by typing:

    • Run the following command:

NOTE: If virtualization is not enabled in your machine, please check how to enable it in your BIOS by following your manufacturer’s instructions.

Hardware-assisted virtualization in Windows 7
  • Download and run the Microsoft Hardware-Assisted Virtualization Detection Tool.

Step 2: Install Docker Toolbox

Install Docker Quickstart Terminal Software

Download Docker Toolbox

Once the system requirements have been verified, download the installer from the Docker website. Click the download button with the Windows logo.

NOTE: Make sure that you are installing the latest release of Docker Toolbox. Find the list of releases in Docker’s GitHub repository.

Docker Toolbox will install the following applications:

  • Docker Client for Windows
  • Docker Toolbox management tool and ISO
  • Oracle VirtualBox
  • Git MSYS-git UNIX tools

Launch the Docker Toolbox setup wizard

IMPORTANT: If you have VirtualBox installed and running, please shut down it before the installation begins.

These are the steps you must follow for completing the Docker Toolbox installation:

  • Open the installer by double-clicking the .exe file. Choose “Yes” in the Windows security dialog box to allow the program to make changes to your PC.

  • When the Docker Toolbox setup wizard starts, click the “Next” button.

  • Choose the local folder for Docker Toolbox installation. Click the “Next” button.

  • Check the components to be installed (“Git for Windows” is recommended; uncheck “VirtualBox” if already installed). Click “Next”.

  • Accept all default options and click the “Next” button.

  • Verify that all selected components will be installed. Click “Back” to change any settings.

  • Click the “Install” button to finish the installation. If Windows should ask you about permitting changes to your PC, click “Yes” to allow it to make the necessary changes.

  • After all the components are installed, the wizard will notify that installation was successful. Uncheck “View Shortcuts in File Explorer” and click “Finish”.

Step 3: Verify the installation

To verify installation, follow these steps:

  • Go to your desktop, which should have these three icons:

    • Docker Quickstart Terminal
    • Kitematic
    • Oracle VM VirtualBox.
  • Launch the Docker Quickstart Terminal by clicking the corresponding icon. This starts the creation of the Docker machine and all its components.

  • Click near the $ symbol to activate the terminal.

  • Type the following command and press Enter:

  • Docker will download and run the “Hello world” container. A confirmation message will be displayed in the terminal.

This indicates that your Docker installation is successful.

Step 4: Run Bitnami WordPress in Docker

Now that Docker is running, the next step is to use it with a Bitnami application. This guide will use the Bitnami WordPress Docker image.

The Bitnami WordPress Docker image provides the latest version of WordPress, including recent updates.This image deploys two containers, one for the database and another for the application itself.

Follow the steps below to deploy the Bitnami WordPress image:

  • Open the Docker Quickstart Terminal by double-clicking the icon.

  • Browse to Bitnami’s Docker image for WordPress. Click the “Clone or download” button. Copy the URL to the clipboard.

  • Type git clone in the Docker Quickstart Terminal and paste the URL:

  • Check the IP address of your Docker machine by executing the following command:

  • Change the directory:

  • Run the docker-compose up command to launch the containers and to create the volumes:

  • Access the application by browsing to the Docker machine IP address. You should see something like this:

Install Docker Quickstart Terminal Windows 10

Useful links

https://mengz.me/posts/docker…

In the first part of this series – basic concepts and installation, we introduced the basic concepts of containers and how to install docker engine on Ubuntu (Linux) to develop containerized references
This article describes how to install and use docker on Windows system. Here, we mainly introduce how to install and use docker desktop on Windows 10. For versions below Windows 10, you can use docker toolbox, which will not be introduced here

Install docker desktop

Docker desktop – the fast way to container applications on your desktop, which is the official definition of docker. Docker desktop provides a desktop container development environment for windows and MAC. On Windows 10, docker desktop uses the Hyper-V virtualization technology of windows, so you need a computer with hardware virtualization turned on and installed with windows 10 professional version of the system, also need to open Hyper-V function, how to open Hyper-V on Windows 10, refer to here

A kind of Supplement_ : docker desktop supports windows 10 64 bit: professional, enterprise, education (build 15063 or above)

First, download the installation package of docker desktop on the windows system that meets the requirements- https://hub.docker.com/editio… The installation process is simple. You can double-click the downloaded installation directly, and you will be more prompted to install. At the beginning, we choose to use the Linux container (later we can change to use the windows container, and we will write a separate article to introduce the use of the windows container). During the installation process, the installation program will check whether the system meets the requirements. If not, the, Setup will report an error and end the installation

After installation, openstartMenu and selectDocker DesktopStart

Check the docker icon on the status bar, which will be displayed at the beginningstartingLoad, wait until the displayDocker Desktop is runningYou can use docker’s commands through terminals (such as powershield). Next, we will use windows 10’s PowerShell as the terminal for operation

Building and running containers

We will use a simple node application to illustrate how to build a container image and start a container on windows. First, we need to download the code base to our environment. Here we can clone the code base using git or download the code package directly

On windows, you can use git for windows or WSL of windows 10 to install an Ubuntu subsystem, and then install git in the terminal of the Ubuntu subsystem, and directly use git to clone the code. Here, I use the clone code library in the terminal of the Ubuntu subsystem to the local directory

As shown in the figure above, we cloned the code into theD:gitreposhellonodeDirectory, then switch to the PowerShell terminal and enter the directory. Open it with your favorite text editorhellonodeDockerfile(vs code is used when recommending. The content is as follows

Building a mirror image

Using this simple dockerfile to build the node application of the example, execute the following command in the PowerShell

As shown in the following figure, you will see the container image that is built

Run container

Then we use the built image to start an application container and execute the following command in the PowerShell

Install docker quickstart terminal commands

So we start a container and use itdocker contianer lsTo view the current container status, we can also use the docker desktop dashboard to view the container status graphically and perform some operations. To open the dashboard, click the docker desktop icon in the status bar and selectDashboardOpen, as shown in the following figure

On the dashboard, we can view container related information by UI operation, such as viewing container log, stopping / starting / restarting container, and entering container cli

When we run the container, we use the-p 3000:3000The 3000 port of container application is mapped to the local 3000 port, so we can directly access the local 3000 port to access the application

After that, we can use the following command to stop and delete the container

Push image to docker hub

If you need to push the built image to the docker hub, first log in to your docker hub account, click the docker desktop icon in the status bar, and selectSign in/Create Docker ID.., open the login window to log in

Then we execute it in PowerShell

This will push the image to your warehouse on the docker hub

summary

Here is a brief introduction to how to use docker desktop to develop container applications on Windows 10. Docker desktop provides a good docker containerization tool for Windows users. In addition to using docker engine, docker Desktop also provides kubenetes function, can run a stand-alone k8s environment on windows, more information can read the official documents

Although docker desktop provides a visual management tool for windows, I still recommend using docker engine directly on Linux desktop. In Linux environment, if you want a UI management tool, I recommend using portal, a web-based container management tool