File tree Expand file tree Collapse file tree
content/manuals/engine/security/rootless Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,15 +152,23 @@ $ cat /sys/fs/cgroup/user.slice/user-$(id -u).slice/user@$(id -u).service/cgroup
152152memory pids
153153```
154154
155- To allow delegation of all controllers, you need to change the systemd configuration as follows :
155+ To allow delegation of all controllers, change the systemd configuration:
156156
157157``` console
158- # mkdir -p /etc/systemd/system/user@.service.d
159- # cat > /etc/systemd/system/user@.service.d/delegate.conf << EOF
158+ $ sudo mkdir -p /etc/systemd/system/user@.service.d
159+ ```
160+
161+ Create ` /etc/systemd/system/user@.service.d/delegate.conf ` :
162+
163+ ``` ini
160164[Service]
161165Delegate =cpu cpuset io memory pids
162- EOF
163- # systemctl daemon-reload
166+ ```
167+
168+ Then reload systemd:
169+
170+ ``` console
171+ $ sudo systemctl daemon-reload
164172```
165173
166174> [ !NOTE]
You can’t perform that action at this time.
0 commit comments