LXC + Docker Containers + Storage - A Crash Course!

Опубликовано: 04 Ноябрь 2024
на канале: The Tinker Dad
9,299
210

In this video I've tried to collect all the information that can be useful for people to mount and use storage in LXC containers and even in Docker containers nested inside LXC containers! The video is based on Proxmox, but concentrates on LXC containers meaning that you can actually use knowledge shared here without Proxmox. Topics discussed include bind mounts, id mapping, troubleshooting permission and file ownership issues, idmap, subuid/subgid issues, etc.

Chapters:

00:00 Intro
00:35 Background and motivation
01:14 Goals and prerequisites
02:04 Bind mount basics
07:34 Intro to ID maps
10:57 An oversimplified example
12:06 A full blown example
15:15 subuids and subgids
18:52 Troubleshooting permission issues
21:55 Fake local users / groups
27:12 Ownership problems?
29:00 umask basics
32:10 Mapping host users to LXC containers
37:36 Home folder issue caused by idmap
41:00 Let's add Docker to the mix!
44:22 Outro

This is a particularly hot topic on Reddit and Proxmox forums, yet most people ask questions and the answers are usually scarce. If you have a question the video still does not answer, use the comments as usual.

The umask calculator I mentioned in the video: https://wintelguy.com/umask-calc.pl

If you enjoyed this video and want to see more, please consider subscribing to my channel!

My secondary YouTube channel (behind the scenes, vlogs, personal projects):
   / @laszlomerczel140  

My programming projects and Arduino code samples on GitHub:
https://github.com/TheTinkerDad/

My 3D printing Projects on Thingiverse:
https://www.thingiverse.com/TheTinker...

My published Docker images on DockerHub:
https://hub.docker.com/u/thetinkerdad

Also check out the social media for more info on this page, about what I'm up to, etc:
  / thetinkerdad  
  / thetinkerdad  
  / thetinkerdad  

Background music: Copyright free music by Harris Heller / StreamBeats.com