Difference between revisions of "Installing Docker on Ubuntu 20.04"

From Lingoport Wiki
Jump to: navigation, search
 
Line 50: Line 50:
 
This command will run a test container and display a message indicating that the installation is working properly.
 
This command will run a test container and display a message indicating that the installation is working properly.
   
If this is a new system, other packages may need to be installed, such as:
+
== Install other packages ==
  +
In anticipation of installing Command Center, the following packages should be installed, if not already on the system.
* git
 
  +
* zip and unzip
 
  +
*git
  +
*zip and unzip
   
 
Return to the [[Command Center Installation|Installation page]] to continue installing Command Center on the system
 
Return to the [[Command Center Installation|Installation page]] to continue installing Command Center on the system

Latest revision as of 22:27, 25 April 2023

Introduction

On the system (most likely a virtual machine) dedicated to Command Center, make sure you have the latest version of docker up and running. The following steps may help.

A user with sudo privileges is required to run most commands. The sudo user for Ubuntu may be 'ubuntu'.

The notes on this page have come from: Install Docker Engine on Ubuntu

Uninstall old docker versions

This is an optional step in case your docker version is out of date. Also to clean the system and start fresh.

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

Install docker using the repository

   sudo apt-get update
   sudo apt-get install \
   ca-certificates \
   curl \
   gnupg


   sudo install -m 0755 -d /etc/apt/keyrings
   curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
   sudo chmod a+r /etc/apt/keyrings/docker.gpg
   echo \
   "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
   "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
   sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
   sudo apt-get update
   sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Start Docker

Start docker using the following command:

   $ sudo systemctl start docker

Enable the Docker service to start automatically on system boot by running the following command:

   $ sudo systemctl enable docker

Verify that Docker Engine is installed correctly

Run the hello-world image.

   $ sudo docker run hello-world

This command will run a test container and display a message indicating that the installation is working properly.

Install other packages

In anticipation of installing Command Center, the following packages should be installed, if not already on the system.

  • git
  • zip and unzip

Return to the Installation page to continue installing Command Center on the system