public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] custom mount fstab
@ 2020-07-03 13:33 Tamer Higazi
  2020-07-03 13:46 ` Michael
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Tamer Higazi @ 2020-07-03 13:33 UTC (permalink / raw
  To: gentoo-user

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 |



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

* Re: [gentoo-user] custom mount fstab
  2020-07-03 13:33 [gentoo-user] custom mount fstab Tamer Higazi
@ 2020-07-03 13:46 ` Michael
  2020-07-03 14:33   ` Tamer Higazi
  2020-07-03 14:04 ` Andrew Udvare
  2020-07-04  3:00 ` [gentoo-user] " Nikos Chantziaras
  2 siblings, 1 reply; 7+ messages in thread
From: Michael @ 2020-07-03 13:46 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 571 bytes --]

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


[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [gentoo-user] custom mount fstab
  2020-07-03 13:33 [gentoo-user] custom mount fstab Tamer Higazi
  2020-07-03 13:46 ` Michael
@ 2020-07-03 14:04 ` Andrew Udvare
  2020-07-03 14:33   ` Tamer Higazi
  2020-07-04  3:00 ` [gentoo-user] " Nikos Chantziaras
  2 siblings, 1 reply; 7+ messages in thread
From: Andrew Udvare @ 2020-07-03 14:04 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 489 bytes --]

On Fri, Jul 3, 2020, 09:34 Tamer Higazi <th982a@googlemail.com> 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. :/

[-- Attachment #2: Type: text/html, Size: 936 bytes --]

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

* Re: [gentoo-user] custom mount fstab
  2020-07-03 14:04 ` Andrew Udvare
@ 2020-07-03 14:33   ` Tamer Higazi
  0 siblings, 0 replies; 7+ messages in thread
From: Tamer Higazi @ 2020-07-03 14:33 UTC (permalink / raw
  To: gentoo-user

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 <th982a@googlemail.com 
> <mailto:th982a@googlemail.com>> 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. :/


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

* Re: [gentoo-user] custom mount fstab
  2020-07-03 13:46 ` Michael
@ 2020-07-03 14:33   ` Tamer Higazi
  2020-08-01 15:45     ` jdm
  0 siblings, 1 reply; 7+ messages in thread
From: Tamer Higazi @ 2020-07-03 14:33 UTC (permalink / raw
  To: gentoo-user

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
>


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

* [gentoo-user] Re: custom mount fstab
  2020-07-03 13:33 [gentoo-user] custom mount fstab Tamer Higazi
  2020-07-03 13:46 ` Michael
  2020-07-03 14:04 ` Andrew Udvare
@ 2020-07-04  3:00 ` Nikos Chantziaras
  2 siblings, 0 replies; 7+ messages in thread
From: Nikos Chantziaras @ 2020-07-04  3:00 UTC (permalink / raw
  To: gentoo-user

On 03/07/2020 16:33, 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 ? 

I use docker and I don't have to add anything like that to fstab. 
systemd mounts it automatically. However:

https://wiki.gentoo.org/wiki/Docker#Docker_service_fails_because_cgroup_device_not_mounted_.28systemd.29

So make sure to emerge systemd with the "cgroup-hybrid" USE flag set.



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

* Re: [gentoo-user] custom mount fstab
  2020-07-03 14:33   ` Tamer Higazi
@ 2020-08-01 15:45     ` jdm
  0 siblings, 0 replies; 7+ messages in thread
From: jdm @ 2020-08-01 15:45 UTC (permalink / raw
  To: gentoo-user

On Fri, 3 Jul 2020 16:33:42 +0200
Tamer Higazi <th982a@googlemail.com> 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


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

end of thread, other threads:[~2020-08-01 15:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-03 13:33 [gentoo-user] custom mount fstab Tamer Higazi
2020-07-03 13:46 ` Michael
2020-07-03 14:33   ` Tamer Higazi
2020-08-01 15:45     ` jdm
2020-07-03 14:04 ` Andrew Udvare
2020-07-03 14:33   ` Tamer Higazi
2020-07-04  3:00 ` [gentoo-user] " Nikos Chantziaras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox