blob: a37827f2e745777605b2f03a02243577e16bfac9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# $Id$
# Maintainer: John Andersen <johnandersenpdx@gmail.com>
post_install() {
cat << EOF
You need to enable the Clear Containers runtime by adding it to the docker
daemons command line options. To do this you need to make an override file for
the systemd service that starts docker. Only add the --default-runtime if you
want to always use the cc-oci-runtime instead of runc by default.
$ sudo mkdir -p /etc/systemd/system/docker.service.d/
$ sudo vi /etc/systemd/system/docker.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -D --add-runtime cor=/usr/bin/cc-oci-runtime \
--default-runtime=cor
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
$ sudo systemctl enable cc-proxy.socket
$ sudo systemctl start cc-proxy.socket
If you are running a recent enough kernel (4.3+), you should consider
increasing the TasksMax= systemd setting. Without this, the number of Clear
Containers you are able to run will be limited.
Run the commands below and if they display OK, proceed, else skip this section:
$ grep -q ^pids /proc/cgroups && echo OK
Assuming you got an OK:
$ cd /etc/systemd/system/docker.service.d/
$ sudo vi /etc/systemd/system/docker.service.d/clr-containers.conf
[Service]
# Allow maximum number of containers to run.
TasksMax=infinity
EOF
}
|