mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-10 11:21:05 +00:00
Use hierarchy for memory cgroups
Container systems expect this... Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -59,6 +59,9 @@ do
|
|||||||
esac
|
esac
|
||||||
done < /proc/cgroups
|
done < /proc/cgroups
|
||||||
|
|
||||||
|
# use hierarchy for memory
|
||||||
|
echo 1 > /sys/fs/cgroup/memory/memory.use_hierarchy
|
||||||
|
|
||||||
# for compatibility
|
# for compatibility
|
||||||
mkdir -p /sys/fs/cgroup/systemd
|
mkdir -p /sys/fs/cgroup/systemd
|
||||||
mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
|
mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
|
||||||
|
Reference in New Issue
Block a user