Site icon Ubuntu Free

How to install Docker on Ubuntu

If you’re looking to manage applications in a containerized environment, Docker is one of the best tools available for Ubuntu and other Linux distributions. Docker makes it easier to create, deploy, and run applications using containers, allowing you to efficiently manage software environments.

In this guide, we’ll walk through the steps to install Docker on Ubuntu, highlight some of its key features, and explore why it’s become such a popular tool among developers and system administrators.

How to Install Docker on Ubuntu

  1. Choose where you want to download Docker from:
  2. Once downloaded, follow the installation instructions for your chosen format. After installation, you can start Docker from your terminal.

How to Install Docker via Terminal on Ubuntu

  1. Open your terminal.
  2. To install Docker via Snap, use this command:
    sudo snap install docker
  3. For manual installation using the official method:
    • Update your package index:
      sudo apt update
    • Install prerequisite packages:
      sudo apt install apt-transport-https ca-certificates curl software-properties-common
    • Add Docker’s official GPG key:
      curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
    • Set up the stable repository:
      echo "deb [arch=$(dpkg --print-architecture) 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
    • Update the package index again:
      sudo apt update
    • Install Docker:
      sudo apt install docker-ce
  4. After installation, you can verify that Docker is running:
    sudo systemctl status docker

What Is Docker?

Docker is an app that makes it simple and easy to run application processes in a container, which are like virtual machines, only more portable, more lightweight which means they are naturally resource friendly, and more dependent on the host operating system. Docker provides an open platform for developers and sysadmins to build, package, and run applications anywhere as a lightweight Docker container. Docker automates the deployment of applications inside software containers.

Docker Linux Features:

Docker Container Screenshots

You can also try Bitwarden, TeamViewer and Visual Studio Code.

Exit mobile version