How to install Docker Desktop on Ubuntu 22.04
sudoUsing Docker has never been easier, especially to linux Developers.This has been so because all docker commands are done on the terminal unlike in windows developers who enjoy docker desktop.
The new invention for docker-desktop for linux OS,has just made linux developers to be better,with simplification of the tiring command line tasks ,increasing their performance and development.
Developed by Docker, Docker Desktop is a free and user-friendly GUI application that allows users to easily run and manage Docker containers and images from their Linux PC without the need for executing commands on the CLI.
Prerequisites
Before installing docker desktop,please ensure that your computer meets the following basic requirements.
Look here ...
Step 1: KVM virtualization support
The?kvm?module should load automatically if the host has virtualization support. To load the module manually, run:
modprobe kvm
If you dont have a desktop environment installed ,you can install gnome using the following command;
sudo apt install gnome-terminal
Check if KVM is enabled using the following command;
$ lsmod | grep kvm
If the module is loaded, you should get the following output. This shows that the KVM module for the Intel CPU is enabled.
If the module is not loaded ,run the following commands to load it;
a)Intell developers;
sudo modprobe kvm_intel
b)AMD developers;
领英推荐
sudo modprobe kvm_amd
Step 2: Installing Docker on Ubuntu(latest version)
Update the package lists and install the requisite dependencies as follows;
$ sudo apt updat
$ sudo apt install software-properties-common curl apt-transport-https ca-certificates -ye
Then, add Docker's GPG signing key.
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/docker-archive-keyring.gpg
Next, add the official Docker’s repository to your system as follows.
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
Then, install Docker and other Docker tools;
$ sudo apt install docker-ce docker-ce-cli containerd.io uidmap -y
Confirm the version of Docker running;
sudo docker version
Step 3: Install Docker Desktop on linux(latest version)
Run this command in your terminal;
$ wget https://desktop.docker.com/linux/main/amd64/docker-desktop-4.15.0-amd64.deb
Step 4: Launch docker desktop
Or launch using the terminal;
$ sudo systemctl --user start docker-desktop
Once launched,you'll be presented with the following GUI
Accept the terms to get started.