A
A
Artemy2016-09-22 17:31:35
MySQL
Artemy, 2016-09-22 17:31:35

How to set up a non-privileged lxc container?

I found such a manual, but I can’t stick which user I mean:
For example, you can create a container and specify 4 fields (1 field - u or g, 2 field - the first UID in the container, 3 field - the first UID in the host, 4 field - range ):
lxc.id_map = u 0 100000 65536
lxc.id_map = g 0 100000 65536
This would mean that there is one UID map and one GID map for my container, which maps the UID/GID of the container from 0 to 65536 to UID/ Host GID from 100000 to 165536 (100000+65536). For this mapping to work, you need to tell the user (in the stgraber example, the account on Stefan Graber's laptop) these ranges:
In the /etc/subuid file - stgraber:100000:65536
In the /etc/subgid file - stgraber:100000:65536

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rsa97, 2016-09-09
@MaxxxNSK

SELECT *
  FROM `questions` AS `q`
  JOIN (
    SELECT `question_id`, COUNT(*) AS `count`
    FROM `answers`
    GROUP BY `question_id`
    HAVING `count` > 100
  ) AS `a` ON `a`.`question_id` = `q`.`id`

A
Artem, 2016-09-09
@proudmore

I don't understand the terms, to be honest. State it more explicitly. With the structure of tables, for example. And with an example. What and how should you end up with. It will be easier

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question