Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Arch This Forum is for the discussion of Arch Linux.


  Search this Thread
Old 07-18-2019, 08:15 AM   #1
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 124

Rep: Reputation: Disabled
Unprivileged lxc-containers

I don't understand some aspects of lxc containers like the correct usage of user namespaces when creating unprivileged lxc-containers. I am trying to create an unprivileged alpine-linux container using lxc 1:3.1.0-2 on a Raspberry Pi 3B running 4.19.58-1-ARCH ARM.

I followed these steps. I enabled user namespaces and set up a network bridge successfully. When it comes to user subuid mapping i fail to comprehend.

As far as i understand /etc/subuid enables the user <user>, who runs the unprivileged container, to map to uid 100000-165536 (wich would be uid 0-65536 on the container) on the host machine in this example:
Same goes for /etc/subgid.

Is it recommended to create an extra user on the host machine to run the container in the first place or can i run the container with my "standard" user with the uid 1000?
Do i create the follow-up-users that the users in the container point to or is that managed by lxc?
I assume there are further steps to be done to create an enviroment for the unprivileged container like copying templates or config files to the users home directory or am i completely on the wrong track here?

Last edited by platypo; 07-18-2019 at 08:40 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Everything You Need to Know about Linux Containers, Part II: Working with Linux Containers (LXC) LXer Syndicated Linux News 0 08-27-2018 02:53 PM
Network help with unprivileged lxc containers on -current Rinndalir Slackware 6 09-10-2015 12:59 PM
Unable to start unprivileged Lxc container on Debian Sid hurd Debian 0 02-02-2015 11:45 PM
LXC unprivileged container - operation no permitted gauthig Linux - Virtualization and Cloud 2 07-15-2014 04:34 PM > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 02:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration