How to install Docker Desktop on Ubuntu 22.04
Docker desktop on linux

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.

  • 64-bit CPU with Virtualization enabled.
  • At least 4GB RAM
  • ?A?Sudo User?with admin rights
  • At least 4 GB of RAM.
  • Enable configuring ID mapping in user namespaces, see?File sharing.
  • A GUI desktop environment (Preferably GNOME, MATE, or KDE )

Look here ...

No alt text provided for this image
Installing docker desktop on Linux

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.

No alt text provided for this image
Kvm is enabled OK?

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)

No alt text provided for this image
Docker desktop now in ubuntu

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)

No alt text provided for this image
Docker desktop for linux


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

No alt text provided for this image
Application search

Or launch using the terminal;

$ sudo systemctl --user start docker-desktop        

Once launched,you'll be presented with the following GUI

No alt text provided for this image

Accept the terms to get started.

要查看或添加评论,请登录

Patrick W.的更多文章

  • Explaining ci/cd to a -kid

    Explaining ci/cd to a -kid

    CI/CD stands for Continuous Integration and Continuous Deployment (or Continuous Delivery). In simple terms, it refers…

  • Laravel Application with react and Passport, Redux, and Material UI

    Laravel Application with react and Passport, Redux, and Material UI

    Part 1 (Backend) I this project,i shall be building a laravel application (frontend and backend) using Laravel and…

    1 条评论
  • How to install laravel Globally on Ubuntu

    How to install laravel Globally on Ubuntu

    Introduction Laravel uses composer to run and create projects,before proceeding with this install,please ensure you…

    2 条评论

社区洞察

其他会员也浏览了