Skip to content

Commit

Permalink
Merge pull request #2 from buildo/cgroup_v2
Browse files Browse the repository at this point in the history
Avoid sanitizing cgroups if cgroup v2 is enabled
  • Loading branch information
mcastellini authored Feb 20, 2023
2 parents 81ac9b4 + 3d80b9c commit 1777cd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ DOCKERD_PID_FILE="/tmp/docker.pid"
DOCKERD_LOG_FILE="/tmp/docker.log"

sanitize_cgroups() {
if [ -e /sys/fs/cgroup/cgroup.controllers ]; then
return
fi

local cgroup="/sys/fs/cgroup"

mkdir -p "${cgroup}"
Expand Down

0 comments on commit 1777cd1

Please sign in to comment.