Best News Network

How to install Docker Desktop and enable Kubernetes support

Jack Wallen shows you how to install Docker Desktop and extend it with Kubernetes and Portainer support.

shipping containers in the shape of a docker whale
Image: Adobe Stock

Containerized applications are only going to increase in popularity year by year, which means every developer and admin has to know how to deploy and manage those containers and services. To that end, several GUI tools have been developed and released to make the job considerably easier.

But not all of those tools are created equal. To date, my absolute favorite Docker GUI is Portainer, but there are plenty of other options. One such application is the official Docker Desktop GUI that’s available for Linux, macOS, and Windows. Although Docker Desktop doesn’t give you nearly the amount of features and controls found in Portainer, it’s still a great GUI that allows you to manage running containers, pull and manage images, deploy containers from images, create development environments, add Kubernetes support, and even expand the feature set with extensions.

I want to walk you through the installation of Docker Desktop on Pop!_OS Linux and show you how to enable Kubernetes support and even extend it with Portainer.

SEE: Hiring kit: Back-end Developer (TechRepublic Premium)

How to install Docker Desktop

As I mentioned, Docker Desktop is available for Linux, macOS, and Windows. The installation of both macOS and Windows is the same as installing any app on your desktop. In case you’re not familiar with installing apps on Linux, let me show you how easy it is to install Docker Desktop on Pop!_OS Linux.

1. Download the DEB file and install

The first thing you must do is download the DEB file from the Docker Desktop download page. Once that file has been downloaded, open a terminal window and issue the command (assuming you saved the file in your Downloads directory):

sudo dpkg -i ~/Downloads/docker-desktop-*.deb

Should the installation error out, you can fix it with:

sudo apt-get install -f

2. Open and link to Docker Hub

Once the installation completes, open Docker Desktop from your desktop menu. One of the first things you might want to do is link Docker Desktop to your Docker Hub account. For that, click the Sign-Up button near the top right of the main window (Figure A).

Figure A

View of Docker Desktop where you can add Portainer support.
I’ve already added Portainer support to Docker Desktop for even more functionality.

Clicking signup will open your default web browser, where you sign in to your Docker Hub account. Once you’ve signed in, you’ll be redirected back to the application and you’re ready to go.

How to enable Kubernetes support

By enabling Kubernetes support, Docker Desktop will install a single-node cluster. To do this, click the gear icon in the top right corner of the Docker Desktop main window, and then, in the left navigation (Figure B), click Kubernetes.

Figure B

Extend the feature set in the settings window.
The Docker Desktop Settings window is ready for you to extend the feature set.

In the resulting window (Figure C), click Enable Kubernetes.
Figure C

Enable Kubernetes support in Docker desktop.
Enabling Kubernetes support in Docker Desktop.

This will take some time, as Docker Desktop has to download a few components. Once it completes, Kubernetes will start and you should see its icon (bottom left corner) turn green. Kubernetes has been enabled.

How to extend Docker Desktop with extensions

Next, let’s add the Portainer extension, which greatly enhances the Docker Desktop feature set. For that, click the menu icon associated with Extensions and then click Marketplace. In the right pane, scroll down until you see the Portainer entry and then click Install (Figure D).

Figure D

Docker desktop view with button to install portainer extension
Installing the Portainer extension in Docker Desktop.

Once installed, click the Portainer entry in the left panel to reveal the Environment wizard (Figure E). You can then add an environment (which tells me this version of Portainer is a bit out of date, as the newer versions ship with a pre-configured local environment).

Figure E

Final view of Docker Desktop with Portainer GUI installed.
Portainer is installed and ready for you to set up the first environment.

And that, my friends, is all there is to installing and expanding Docker Desktop to meet and exceed your container management needs.

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the latest tech advice for business pros from Jack Wallen.

Stay connected with us on social media platform for instant update click here to join our  Twitter, & Facebook

We are now on Telegram. Click here to join our channel (@TechiUpdate) and stay updated with the latest Technology headlines.

For all the latest Technology News Click Here 

 For the latest news and updates, follow us on Google News

Read original article here

Denial of responsibility! NewsAzi is an automatic aggregator around the global media. All the content are available free on Internet. We have just arranged it in one platform for educational purpose only. In each content, the hyperlink to the primary source is specified. All trademarks belong to their rightful owners, all materials to their authors. If you are the owner of the content and do not want us to publish your materials on our website, please contact us by email – [email protected]. The content will be deleted within 24 hours.