TestingDocs.com
    Software Testing website
    • Automation
      • Selenium
      • JBehave Framework
    • Tutorials
      • MySQL Tutorials
      • Testlink
      • Maven
      • Git
    • IDEs
      • IntelliJ IDEA
      • Eclipse
    • Flowcharts
      • Flowgorithm
      • Raptor
    • About

    Docker

    Docker Install on Ubuntu

    Overview

    In this tutorial, we will learn the steps involved in setup a secure and stable Docker repository. This would make installing and updating Docker easy compared to the manual install process from the Debian packages.

    Docker Install on Ubuntu

    There are many ways to install Docker on Ubuntu Linux.

    • Setting up a repository with APT
    • Manual Download and Install the Docker Debian packages
    • Automation Scripts

    Check if Docker is installed on the machine. Remove older versions of the tools:

    $ sudo apt remove docker docker-engine docker.io containerd runc

    Docker Install Check

    Docker Repository

    Set up the Docker repository on HTTPS.

    Launch Terminal and Issue the following command:

    Refresh the apt index

    $ sudo apt update

    sudo apt Update

    Install packages for apt to use HTTPS secure protocol

    $ sudo apt install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg \
    lsb-release

     

    Setup Docker Repository

    Add Docker GPG Key and Setup Stable repository

    $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg –dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

     

    Check the machine architecture and choose the repository setup command. For example, 64-bit machine command:

     

    $ echo \
    “deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
    $(lsb_release -cs) stable” | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

     

     

    Add Docker GPG Key

     

    Docker Install

    Update the apt repository index and issue the Docker install command.

    $ sudo apt update

    $ sudo apt install docker-ce docker-ce-cli containerd.io

    Docker Install Ubuntu Linux

    Check Version

    To verify the installation, issue the docker –version command. On successful installation, the docker version should be displayed.

    $ docker –version

     

    Docker Version Full Command

     

    That’s it. We are done with the installation process of Docker on Ubuntu Linux.

    Related Tools

    Docker Compose

    https://www.testingdocs.com/docker-compose-tool/

    More Information on Docker:

    https://docs.docker.com/

    Related Posts

    Container Technology

    Docker /

    Advantages of Containerization Technology

    Connection Refused Error

    Docker /

    Fix Connection refused Error Selenium Tests On Docker

    Docker Compose YAML File

    Docker /

    Docker Compose Tool

    Download and Install Docker Desktop

    Docker /

    Download and Install Docker Desktop

    Docker /

    Popular Containerization Software

    ‹ Download and Install Docker Desktop› Docker Compose Tool

    Recent Posts

    • Running Tests in Parallel with Selenium Grid
    • Advanced Selenium Features
    • Locating Web Elements
    • Running the Test Script
    • Writing Your First Selenium Test Script
    • Getting Started with Selenium Automation Testing
    • Setting Up the Environment
    • How can you monitor the Quality Assurance Audit?
    • Leveraging LambdaTest with Appium 2.0
    • Appium 2.0 Plugins ListAppium 2.0 Plugins
    • Touch Actions and Multi-Touch Actions
    • Changes in Drivers and Classes
    • Appium Inspector
    • Capabilities in Appium 2.0
    • Appium 2.0 Driver ListAppium 2.0 Driver Installation & Management
    CyberLink Multimedia Software

    Back to Top

    Links

    • Contact
    • Privacy Policy
    • Cookie Policy

    www.TestingDocs.com