Updated News Around the World

How to add Portainer to Docker Desktop and connect it to a remote environment

Jack Wallen shows you how to extend the Docker Desktop feature set by adding Portainer into the mix.

3d illustration of Application software programming source code. Open source concept.
Image: klss777/Adobe Stock

Docker Desktop is the official GUI for Docker container management. With this cross-platform tool, you can do just about anything you need to work with your deployments. The one caveat to Docker Desktop is that it only allows you to manage containers on the same host the app is installed on. If you want to use it to connect to a remote server, you’re out of luck.

However, I have found the web-based Portainer, which can connect to a remote environment, to be a bit more robust in features. With Portainer you can manage literally every single aspect of containers.

When I discovered it’s possible to add Portainer to Docker Desktop, I was thrilled. By adding Portainer to Docker Desktop, you extend the feature set to give the application more power, control and flexibility.

For anyone serious about managing your Docker containers with a GUI, it is very much worth your time to add Portainer to Docker Desktop, and I’m going to show you how.

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

What you’ll need

The only thing you’ll need to make this work is a running instance of Docker Desktop. If you don’t already have that up and running, here’s a tutorial that will guide you through the process.

With that out of the way, let’s add Portainer.

How to install Portainer

The developers of Docker Desktop have made this incredibly easy, thanks to a handy Marketplace, where you can install Portainer and plenty of other extensions such as anchor, JFrog, Lens, Meshery, OpenShift, Snyk and more.

To install Portainer, open Docker Desktop. Once the app is up and running, click Add Extensions in the left navigation (Figure A).

Figure A

Image: Jack Wallen/TechRepublic. The Docker Desktop main window clearly shows the Extension feature is in beta.

Click install associated with Portainer and, when prompted, type your user password. The installation should complete fairly swiftly, and once it completes you’ll see Portainer listed in the left sidebar (Figure B).

Figure B

Image: Jack Wallen/TechRepublic. Portainer has been successfully installed.

Click the Portainer listing and then click Get Started (Figure C).

Figure C

Image: Jack Wallen/TechRepublic. You can either use the default environment or create your own.

How to add a remote Docker connection

If your Docker server is running on the same machine you installed Docker Desktop, simply click Get Started to connect to that environment.

If, however, your Docker server is remote, click Add Environments. In the resulting window (Figure D), click the Docker tab.

Figure D

Image: Jack Wallen/TechRepublic. Adding a remote environment to Portainer.

Let’s say you want to name your environment Docker Swarm and the controller is at IP address 192.168.1.13. For that, you’d add Docker Swarm as the name, and then, in the Environment URL space, type 192.168.1.13:2375.

Once you’ve done that, scroll down and click Add Environment (Figure E).

Figure E

Image: Jack Wallen/TechRepublic. The necessary information for creating your new (remote) Docker environment for Portainer.

If you go back to the Portainer main window (Figure F), you should now see your remote environment added with all the statistics showing.

Figure F

Image: Jack Wallen/TechRepublic. Our new environment has been successfully added.

And that’s all there is to adding Portainer to Docker Desktop and connecting it to a remote environment. Enjoy that newfound power and flexibility thanks to Portainer.

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

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! NewsUpdate 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.