Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
systemd 226 breaks docker containers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
luispa
Guru
Guru


Joined: 17 Mar 2006
Posts: 357
Location: España

PostPosted: Thu Dec 17, 2015 7:39 am    Post subject: systemd 226 breaks docker containers Reply with quote

Yesterday updated my system (where I run multiple docker containers) and systemd 226 broke docker:

https://github.com/docker/docker/issues/16256

I looks like they are running in circles but some reported the following works, starting docker with these options:
Code:
docker -d --exec-opt native.cgroupdriver=cgroupfs


In my case it didn't so I had to go to previous "systemd" by blocking 226
Code:
# cat /etc/portage/package.mask/systemd_docker
=sys-apps/systemd-226-r2
=dev-libs/libgudev-230
=virtual/libgudev-230
# emerge -DuvNp system world


Anyone?

Regards,
Luis
Back to top
View user's profile Send private message
LOR
n00b
n00b


Joined: 25 Aug 2015
Posts: 5

PostPosted: Fri Feb 19, 2016 11:08 pm    Post subject: Reply with quote

Hola Luis!

For me the following resolved the problem:

Add the parameter

-d --exec-opt native.cgroupdriver=cgroupfs

to the docker systemd service file /usr/lib/systemd/system/docker.service

Code:

[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network.target docker.socket
Requires=docker.socket

[Service]
ExecStart=/usr/bin/docker -d --exec-opt native.cgroupdriver=cgroupfs  -H fd://
MountFlags=slave
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity

[Install]
WantedBy=multi-user.target


Obviously don't forget to restart the service :wink:

HTH
LOR
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum