Installing Docker on Ubuntu 20.04
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'.
[Install Docker Engine on Ubuntu]
Contents
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.
Return to the Installation page| to continue installing Command Center on the system