Está viendo la página Spain versión del sitio.
Le gustaría cambiar a su sitio local?
12 MIN TIEMPO DE LECTURA

Migrate from Docker to Podman

YOU’LL NEED THIS

PODMAN You can install this natively in Linux or through WSL in Windows. For a beginner’s guide to Podman, see the February 2024 issue.

1 PREPARATORY STEPS

Whether installing Podman alongside an existing installation of Docker, or setting it up for the first time on a new machine, the first thing you need to do is migrate your existing container data across to Podman. We recommend storing everything inside a parent container data folder (container-data or podman-container-data, if Docker is already present) in an accessible location. This might be inside C:\Users\ Username in Windows, or your home (~) folder in Linux. You then create individual subfolders for each container inside this.

» Because Podman runs rootless by default under your own username, you’ll need to ensure that all your container folders are accessible. Permission issues don’t exist for Windows users because of the way both Docker and Podman run within the Windows Subsystem for Linux, but if you’re running a native Linux install like Debian or Ubuntu Server, you’ll need to take ownership of the entire container-data folder. Input the following command, substituting username:username with your own Linux username, such as nick:nick): sudo chown -R username:username ~/container-data

» Now, verify that the permissions have been updated: cd ~/container-data && ls -l

» If all is as it should be, your username should be listed as the owner of all the sub-folders, as shown in [Image A].

A COUPLE OF ISSUES AGO, we introduced you to a new, more secure way of running containerized apps on your PC: Podman. However, while Podman is designed to work with Docker containers, the way it functions means they’re not 100 percent compatible—at least in their native form. That’s down to two primary reasons: the first is that Podman runs under your own user account to provide containers with ‘rootless’ access to your system, and the second is that containers are set up to run independently instead of through an additional Docker daemon process.

Rootless access prevents containers from being given the keys to your system, but can cause problems for those that need elevated access in certain areas. The lack of a parent daemon also requires a different approach to configuring containers to auto-start with your system. In this tutorial, we’ll examine these key differences and explain ways in which you can circumvent them to get a selection of popular containers. You’ll also equip yourself with the know-how to get other containers working. We’ve focused on the Linux implementation of Podman, but you can easily tweak these instructions to work with Podman in Windows, too. –NICK PEERS

Desbloquea este artículo y mucho más con
Puedes disfrutar:
Disfrute de esta edición al completo
Acceso instantáneo a más de 600 títulos
Miles de números atrasados
Sin contrato ni compromiso
Inténtalo €1.09
SUSCRÍBETE AHORA
30 días de acceso, luego sólo €11,99 / mes. Cancelación en cualquier momento. Sólo para nuevos abonados.


Más información
Pocketmags Plus
Pocketmags Plus

Este artículo es de...


View Issues
Maximum PC
May 2024
VER EN TIENDA

Otros artículos de este número


editorial
SUPER HERO FATIGUE
© GETTY IMAGES THIS ISSUE, we wrap up
QUICKSTART
Nvidia’s AI Superchip
The company is no longer about gaming
Nvidia drops an AI bombshell with Blackwell
IT’S BEEN TWO YEARS since Nvidia revealed its Hopper H100 GPU architecture, currently one of the most sought-after processors for AI workloads. In fact, it’s in such high demand that individual H100 accelerators can cost $30,000–$40,000. It has also been banned from export to China.
THE LIST
THE BEST WIRELESS KEYBOARDS
Intel’s crazy plan for 1nm silicon
FIVE NEW CHIP PRODUCTION NODES in four years. That was Intel’s plan to get back to technology leadership. It has now added a new 1nm lithography node to its roadmap, due in 2027. But here’s the thing: in terms of products to buy, Intel has achieved little of its original plan. So, what’s going on?
LETTERS
DOCTOR
THIS MONTH THE DOCTOR TACKLES...
THE ULTIMATE GAMING PC
Strap in, as our RTX 4080 Super build has finally landed, says Zak Storey 
LETTERS WE TACKLE TOUGH READER QUESTIONS ON...
> Ideal Pixel Density > Where’s My Case?
THE BUILDS
THIS MONTH’S STREET PRICES...
MAXIMUM PC
LIQUID LUNACY: ADVANCED PC COOLING IN 2024
Is it worth liquid-cooling your PC in this age of non-overclockable chips?
COPILOT PRO & COPILOT FOR MICROSOFT 365
Why Copilot is great, when it’s awful and which version you should buy
CENTERFOLD
PERFORMANCE GEAR LAID BARE 
RETRO GAMING ON WINDOWS 11
Want to enjoy classic games on your modern PC? Nate Drake can help get you playing
R&D
HOW TO
STEP-BY-STEP GUIDES TO IMPROVING YOUR PC
Optimize your PC for Gaming
YOU’LL NEED THIS Stable internet connection (Optional) gaming mouse
Debloat Windows 11
YOU’LL NEED THIS WINDOWS 11 An up to
Create a mod with RTX Remix
YOU’LL NEED THIS NVIDIA RTX 3060TI GRAPHICS CARD
LAB NOTES
Arm is incoming Qualcomm reckons games “just work”
IN THE LAB
Nvidia GeForce RTX 4080 Super
The $999 card that’s really $1,200 
2TB Crucial T705 M.2 PCIe 5.0 SSD
The world’s fastest PCIe 5.0 drive?
Asus Zenbook Duo OLED 2024
Two screens are better than one with Asus’s origami special
HP Omen Transcend 14
Surprisingly affordable, but the battery life is a bummer 
Iiyama GCB3480WQSU-B1 Red Eagle
The gaming goliath you’re after?
NZXT H6 Flow
Possibly the best budget chassis out there
2TB Kingston Fury Renegade PCIe 4.0 M.2 SSD
A little variation goes a long way
NZXT Function 2
Ultra-fast, fully configurable, and relatively affordable
NZXT Lift 2 Symm
Fast, affordable, and lightweight 
Dragon's Dogma 2
A cult classic in the making
Adobe Photoshop vs GIMP
Which picture manipulation app wins?
Chat
X
Soporte Pocketmags