Re: [gentoo-user] custom mount fstab

2020-08-01 Thread jdm
On Fri, 3 Jul 2020 16:33:42 +0200
Tamer Higazi  wrote:

> Thanks Michael!
> 
> I'll give it a try.
> 
> 
> best, Tamer
> 
> Am 3 Jul 2020 um 15:46 schrieb Michael:
> > On Friday, 3 July 2020 14:33:52 BST Tamer Higazi wrote:  
> >> Hi people,
> >>
> >> I had a problem with docker on gentoo and found the solution for
> >> all my
> >>
> >> problems with a custom mount command:
> >> |sudo mount -t cgroup -o none,name=systemd cgroup
> >> /sys/fs/cgroup/systemd
> >>
> >> Can anybody of you tell me how to add that one in /etc/fstab file ?
> >> best, Tamer |  
> > I haven't used cgroups or docker, but if your mount command above
> > is correct, I assume something like this ought to work as far as
> > fstab is concerned:
> >
> > cgroup  /sys/fs/cgroup/systemd  cgroup  none,name=systemd  0 1
> >  
> 

Hi,

Not sure if this may help but there is a library which you can install
called dev-libs/libcgroup which has an init program /etc/init.d/cgconfig

In the config file /etc/cgroup/cgconfig I have 

mount {
"name=systemd" = /sys/fs/cgroup/systemd;
}

which allows lxd containers to run using systemd


Not sure if this what you are after but maybe of use. It allows me to
run Arch linux containers in Gentoo.

John



[gentoo-user] custom mount fstab

2020-07-03 Thread Tamer Higazi

Hi people,

I had a problem with docker on gentoo and found the solution for all my 
problems with a custom mount command:


|sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd 
Can anybody of you tell me how to add that one in /etc/fstab file ? 
best, Tamer |





Re: [gentoo-user] custom mount fstab

2020-07-03 Thread Tamer Higazi

Hi Andrew,

it's on systemd.

Previously I had problems connecting with docker.
After I searched on Github, docker ran then without any problems at all.


best, Tamer

Am 3 Jul 2020 um 16:04 schrieb Andrew Udvare:



On Fri, Jul 3, 2020, 09:34 Tamer Higazi > wrote:


Hi people,

I had a problem with docker on gentoo and found the solution for
all my
problems with a custom mount command:

|sudo mount -t cgroup -o none,name=systemd cgroup
/sys/fs/cgroup/systemd
Can anybody of you tell me how to add that one in /etc/fstab file ?
best, Tamer |


Docker on OpenRC or systemd?

Also with the new cgroups or old?

AFAIK Docker doesn't work or support the new cgroups. :/




Re: [gentoo-user] custom mount fstab

2020-07-03 Thread Tamer Higazi

Thanks Michael!

I'll give it a try.


best, Tamer

Am 3 Jul 2020 um 15:46 schrieb Michael:

On Friday, 3 July 2020 14:33:52 BST Tamer Higazi wrote:

Hi people,

I had a problem with docker on gentoo and found the solution for all my

problems with a custom mount command:
|sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd

Can anybody of you tell me how to add that one in /etc/fstab file ?
best, Tamer |

I haven't used cgroups or docker, but if your mount command above is correct,
I assume something like this ought to work as far as fstab is concerned:

cgroup  /sys/fs/cgroup/systemd  cgroup  none,name=systemd  0 1





Re: [gentoo-user] custom mount fstab

2020-07-03 Thread Andrew Udvare
On Fri, Jul 3, 2020, 09:34 Tamer Higazi  wrote:

> Hi people,
>
> I had a problem with docker on gentoo and found the solution for all my
> problems with a custom mount command:
>
> |sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
> Can anybody of you tell me how to add that one in /etc/fstab file ?
> best, Tamer |
>

Docker on OpenRC or systemd?

Also with the new cgroups or old?

AFAIK Docker doesn't work or support the new cgroups. :/


Re: [gentoo-user] custom mount fstab

2020-07-03 Thread Michael
On Friday, 3 July 2020 14:33:52 BST Tamer Higazi wrote:
> Hi people,
> 
> I had a problem with docker on gentoo and found the solution for all my
> 
> problems with a custom mount command:
> |sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
> 
> Can anybody of you tell me how to add that one in /etc/fstab file ?
> best, Tamer |

I haven't used cgroups or docker, but if your mount command above is correct, 
I assume something like this ought to work as far as fstab is concerned:

cgroup  /sys/fs/cgroup/systemd  cgroup  none,name=systemd  0 1



signature.asc
Description: This is a digitally signed message part.