ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* Re: [sisyphus] Непривилегированные контейнеры lxd: проброс папки
  @ 2017-01-09 18:45 ` Alexander
    0 siblings, 1 reply; 2+ messages in thread
From: Alexander @ 2017-01-09 18:45 UTC (permalink / raw)
  To: sisyphus

09.01.2017 20:30, Aleksey Birukov пишет:
> Пытаюсь настроить проброс папки в непривилегированный контейнер.
> И в контейнере и на хосте собственник должен быть 500:500

а /usr/bin/newuidmap и /usr/bin/newgidmap сделали suid-ными?

-- 
С уважением, Александр


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [sisyphus] Непривилегированные контейнеры lxd: проброс папки
  @ 2017-01-10  6:22     ` Alexander
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander @ 2017-01-10  6:22 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

09.01.2017 22:47, Aleksey Birukov пишет:
> Сделал, не помогло.
>
> А какая магия нужна с sys/proc?
>
> Даже сделал:
> sudo cgm create all $USER
> sudo cgm chown all $USER $(id -u $USER) $(id -g $USER)
> sudo cgm movepid all $USER $$
> Отсюда:
> https://lists.altlinux.org/pipermail/community/2016-October/686081.html


user namespace по умолчанию в альте запрещены. Нужно разрешить, например 
так:
sysctl -w kernel.userns_restrict=0

Я по той схеме что тогда писал  попробовал воспроизвести на p8 - 
контейнер создался и поднялся, но не заработала сеть в контейнере.
Почему - из за отличий p8 от сизифа или из за того что про что-то забыл 
- так и не разобрался.

С уважением, Александр


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-10  6:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-09 18:45 ` [sisyphus] Непривилегированные контейнеры lxd: проброс папки Alexander
2017-01-10  6:22     ` Alexander

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git