CA
  
You are currently viewing the Canada version of the site.
Would you like to switch to your local site?
14 MIN READ TIME

PORTAINER

How to control Docker over the internet

Nick Peers discovers a user-friendly, convenient and powerful way to administer your Docker containers from wherever you happen to be.

OUR EXPERT

Nick Peers uses Portainer to manage Docker on his Ubuntu server. He bloody loves it, he does.

MONITOR YOUR CONTAINERS

1 Navigation sidebar

Use this to quickly move between the different parts of your currently selected Docker instance, and tweak Portainer settings.

2 Container controls

Select one or more containers, then perform bulk actions: start, stop, kill or restart, pause/resume, or even remove.

3 Container list

View a summary of all containers you’ve set up under the current Docker instance. Sort the list using the column headers.

4 Quick actions

Provides handy shortcuts to logs, inspection details, stats and a command prompt (exec console) – just click the appropriate button.

5 Add container

Click this to create a new container following the step-by-step guide over the page.

6 Customise view

Choose what information (Columns) and quick actions (Settings) are shown on the Container list.

D ocker 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) – aweb-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/installfor 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 .

Unlock this article and much more with
You can enjoy:
Enjoy this edition in full
Instant access to 600+ titles
Thousands of back issues
No contract or commitment
Try for $1.39
SUBSCRIBE NOW
30 day trial, then just $13.99 / month. Cancel anytime. New subscribers only.


Learn more
Pocketmags Plus
Pocketmags Plus

This article is from...


View Issues
Linux Format
July 2022
VIEW IN STORE

Other Articles in this Issue


WELCOME
Open source security
Jonni’s playing with his little bag of open
REGULARS AT A GLANCE
Nvidia moves to open source kernel drivers
DRIVERS
LVFS hits 50 million updates
The Linux Vendor Firmware Service has now delivered a huge 50 million updates for computers around the world.
BLUETOOTH IN PIPEWIRE
Frederic Danis is a senior software engineer at
Razer releases stylish Linux laptop
Collaboration between the high-end laptop company and Lambda is powerful… and expensive.
GOING FOR GOLD!
Keith Edmunds is MD of Tiger Computing Ltd,
GNOME patent troll is finally stomped on
Rothschild Patent Imaging (RPI) forced to give up its patent rights.
GitLab moves to AlmaLinux
Development comes after CentOS 8 enters End of Life.
Firefox hits 100
Mozilla celebrates version 100.0 of its famed browser.
Distro watch
What’s down the side of the free software sofa?
PLAN FOR THE FUTURE
Matt Yonkovit is the head of open source
OPEN NVIDIA
Jon Masters has been involved with Linux for
KERNEL WATCH
Jon Masters summarises the latest happenings in the Linux kernel, because someone has to…
Answers
Got a burning question about open source or the kernel? Whatever your level, email it to lxf.answers@futurenet.com
Mailserver
WRITE TO US Do you have a burning
CherryTree
THE BEST NEW OPEN SOURCE SOF T WARE
Sherlock
Version: N/A Web: https://sherlock-project.github.io In addition
Simple Keylogger
Version: 2.7.1 Web: https://simplekeylogger.github.io The keylogger
Siren
Version: 0.10 Web: www.kariliq.nl/siren All operations
MediaInfo
Version: 22.03 Web: https://mediaarea . net/en/MediaInfo The project’s
Mechvibes
Version : 2.3.1 Web: https://mechvibes.com Mechvibes
yt-dlp
Version: 2022.04.08 Web: https://github.com/yt-dlp/yt-dlp Despite its
Eternal Lands
Version: 1.9.6 Web: www.eternal-lands.com If you
Speed Dreams
Version: 2.2.3 Web: www.speed-dreams.org Speed Dream developers
Snap Backup
Version: 6.4.0 Web: https://snapbackup.org Snap Backup
ugrep
Version: 3.7.9 Web: https://github.com/genivia/ugrep Ugrep includes built-in
REVIEWS
AMD Ryzen 7 5800X3D
Dave James contemplates what it is to be the fastest.
TurnKey Linux 17.0
Lethargy and laziness often get the best of him, but sometimes Mayank Sharma can turn the tables to his advantage.
Rolling Rhino Remix
A rolling Ubuntu release sounds so outrageous Mayank Sharma had to see for himself if it really delivers on its word and isn’t just a gimmick.
SysLinuxOS 11.3
Distros that take the kitchen sink approach don’t really appeal to Mayank Sharma… until, of course, he finds one that does.
Q4OS 4.8
Neither a big KDE user nor a fan of Windows, and yet Mayank Sharma can’t resist the charm of this KDE distro and its Windows installer.
Shattered Pixel Dungeon
The only certainties in life are death, taxes and middle management, and Neil Mohr knows which two are the least painful to deal with.
ROUNDUP
Full-featured CMS
Michael Reed takes a good look at five heavyweight professional content management systems that are all open source and completely free.
Get installed
Is the installation routine a helping hand or more of a slap in the face?
Support and community
Help for using the CMS and what to do when we hit difficulties.
The content editor
This is where you’ll be working in the CMS
Themes and customisation
How easy is it to change the look and layout of your site?
Suitability for beginners
You might be an expert, but the user of the system might not be.
Extra features
Does one CMS have any niceties that the other systems lack?
Extensions
Beyond the defaults, to what degree can you add features easily?
The verdict
Content management systems
HACKER’S TOOLKIT 2O22
Pretty boy and known pirate Jonni Bidwell shows how to tame your Parrot. Parrot Security OS, that is… 2022
Hack the planet/Parrot
Get started with a persistent USB install of Parrot Security OS
Hacking 101
Starting with the humble ping command and moving on to some stealthy network recon activities…
Nmap deep dive
Nmap, the stealthy port scanner, is a vital tool for any helpful hacker or nefarious network administrator’s arsenal.
Modern hacking, ethics and statistics
Read about the largest DDoS in history and how honing your hacking skills might help you prevent the next one…
Pi USER
CAUSING A PICO SCENE
Les Pounder works with groups such as the Raspberry Pi Foundation to help boost people’s maker skills
Rock Pi expands its range
Less appetising but just as filling, the China-based Rock Pi now delivers some SBC competition.
GPUs ARE GOish
External Pi ones.
299 winners!
Blasted into space.
Amiberry v5.0
Les Pounder loves the Amiga – he even started his journalism career with custom “disk magazines” on the school playground.
Pimoroni Servo 2040
Achieve precise motion control from Les Pounder’s tiny package.
Cheaper sense and sensor-abilities
The ever-frugal Les Pounder reveals how two of the cheapest sensors on the market can bring a wealth of data to your Raspberry Pi project.
Build your own smart home sensors
Discover how to install micro controllers and simple electronics to make our homes almost as smart as Matt Holder.
Set your Pi for mobile streaming video
Sean Conway helps you ride the rails with a Raspberry Pi and its camera, with a bit of streaming video trickery thrown in for good measure.
IN DEPTH
LINUX IN SPACE!
From a shaky start, Linux is becoming much more established in astronautics. Mike Bedford looks at its success to date and its future prospects.
TUTORIALS
Making presentations from the command line
Although renowned for concocting far better excuses than cocktails, Shashank Sharma is quite adept at making presentations.
Emulate the classic 8-bit Commodore 16
Les Pounder revisits Commodore’s low-cost computer from the mid-80s and finds out how it compares to its more illustrious stablemate.
How to roll your own Linux packages
Installing from existing repos is too easy for Aaron Peters, who’s decided to build his own native package. Here’s how you can follow in his footsteps.
Design 3D parts with computer aided design
Make a 3D part in FreeCAD’s Sketcher workbench with Michael Reed, even if you think an orthographic view is the inside of someone’s mouth.
Set up picture-perfect online photo storage
In a flurry of paranoia, David Rutland expels Google Photos from his life and sets up self-hosted photo storage on the semi-official Linux Format VPS.
TOP OF THE FOSS!
TOP OF THE POP! _OS
System76 developer Michael Murphy shares his Pop!_OS insights with Linux Format’s self-proclaimed top Pop fan Jonni Bidwell.
CODING ACADEMY
Code read/write system file tools
So, you woke up today wanting to know how to use file input and output calls to code system tools in Rust? Then Mihalis Tsoukalos can help.
Use Home Assistant NodeRED devices
NodeRED is a graphical programming language that’s ideally suited to IoT, electronics and home automations, reveals Matt Holder.
Chat
X
Pocketmags Support