Nothing Special   »   [go: up one dir, main page]

Linux Format

How to control Docker over the internet

Credit: www.portainer.io

Docker is a fantastic tool, enabling you to run all kinds of applications, tools and services in selfcontained spaces without the need for a fullblown virtual machine. But controlling it from the command line can be tricky. The obvious solution when running Docker on a desktop is to pair it with Docker Compose, the official GUI frontend, but what if you don’t like Docker Compose, or you’re running Docker on a server with no desktop?

The answer lies in Portainer (www.portainer.io) – a web-based frontend you can use to control Docker from any PC on your local network – or even further afield if you pair it with a reverse proxy. Portainer’s user-friendly interface is packed with powerful features to make it a worthy alternative to Docker Compose. It can be used to manage all the instances of Docker across your network from one central place, and also works with Docker Swarm, Kubernetes and Nomad. Portainer comes in both free and paid-for editions – we’ll be focssing on the free Community Edition version in this tutorial.

Installing Portainer

We’re assuming you already have a form of Docker installed on your machine – see https://docs.docker.com/engine/install/ubuntu for details of installing it in Ubuntu if not. Portainer ships as a Docker instance – it can be run as part of a Docker Swarm or in Kubernetes (see https://docs.portainer.io/v/ce-2.11/start/install for details), but for the purposes of this tutorial, we’ll focus on running it with a local instance of Docker.

To do this, issue these commands in the Terminal, which assume you’ve either added your username to the docker group or configured for rootless access. If not, prefix the commands using sudo.

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format1 min read
Getting Into Intel
At Tom’s Hardware, I’ve recently been testing single-board computers (SBCs) that use Intel CPUs rather than the Arm processors found in the Raspberry Pi. The Intel N100, an Alder Lake N-based CPU, has four cores, four threads and turbos to 3.4GHz. Su
Linux Format9 min read
Inside the AI PC
Remember when 3D screens were the next big thing? What about virtual reality? Or 5G? The truth is that the technology industry loves buzzwords almost as much as it loves the tech itself, and its latest crush is AI PCs. The trouble is, if you ask five
Linux Format4 min read
Mailserver
A robust and simple solution to the LXF315 question entitled Deep Search in Answers lies in the single graphical application, available in the repos: Recoll. It was reviewed in Hot Picks in a past edition of your top-class magazine (LXF311). You can

Related Books & Audiobooks