docker change cgroup driver to systemd

前端 未结 4 977
终归单人心
终归单人心 2021-02-20 03:20

I want to docker to start with systemd cgroup driver. for some reason it using only cgroupfs on my centos 7 server.

here is startup config file.

# system         


        
4条回答
  •  名媛妹妹
    2021-02-20 03:55

    Since I have two configuration file I need to add the entry in the second config file also -- /etc/systemd/system/docker.service.d/docker-thinpool.conf:

    --exec-opt native.cgroupdriver=systemd \
    

提交回复
热议问题