Installing Docker in Ubuntu

Docker (https://www.docker.com/) is an open-source technology that allows for applications to be packaged into ‘containers’ which include any required libraries and other dependencies. This makes it very easy to deploy applications (especially for large enterprises who need to setup their workstations), and you can run more applications on the same amount of hardware (as containers use less resources than virtual machines hosting the applications), among other benefits. It is becoming widely popular.

Use Docker to install DWVA (addressed below). The instructions below are derived from the official Docker installation instructions for Ubuntu (https://docs.docker.com/engine/install/ubuntu/).

  1. Open a Terminal in Ubuntu. Update the Ubuntu package manager before proceeding using the command: sudo apt update
  2. Install the prerequisite packages for Docker by entering the command: sudo apt install ca-certificates curl gnupg lsb-release
  3. Add Docker’s official GPG key using the command: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg —dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
  4. Setup the Docker repository below to the latest stable release by entering the below command in the terminal. Type this on the one line in the terminal: 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
  5. With the Docker repository correctly configured with apt, prepare for installation with: sudo apt update
  6. Install Docker using the command: sudo apt-get install docker-ce docker-ce-cli containerd.io
  7. Verify installation was complete by running a simple Docker container called “Hello World”: sudo docker run hello-world