Skip to content

Commit 2608426

Browse files
committed
Don't mount the cgroup as read-only
Fixes: #193 I wonder why we never had this in the past as we do intent to create the domjudge cgroup in that directory.
1 parent 57bbd8f commit 2608426

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ When using the optional Traefik reverse proxy, deploy the stack defined in https
188188
To run a single judgehost, run the following command:
189189

190190
```bash
191-
docker run -it --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --name judgehost-0 --net dj --hostname judgedaemon-0 -e DAEMON_ID=0 domjudge/judgehost:latest
191+
docker run -it --privileged -v /sys/fs/cgroup:/sys/fs/cgroup --name judgehost-0 --net dj --hostname judgedaemon-0 -e DAEMON_ID=0 domjudge/judgehost:latest
192192
```
193193

194194
Again, replace `latest` with a specific version if desired. Make sure the version matches the version of the domserver.
@@ -242,7 +242,7 @@ echo 127.0.0.1 $(hostname) | sudo tee -a /etc/hosts
242242

243243
###################################################
244244
# Fill in these (secret) variables yourself!!
245-
sudo docker run -d --restart=on-failure --network host --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --name judgehost -e DOMSERVER_BASEURL=your_baseurl -e JUDGEDAEMON_USERNAME=your_username -e JUDGEDAEMON_PASSWORD=your_password domjudge/judgehost:7.0.3
245+
sudo docker run -d --restart=on-failure --network host --privileged -v /sys/fs/cgroup:/sys/fs/cgroup --name judgehost -e DOMSERVER_BASEURL=your_baseurl -e JUDGEDAEMON_USERNAME=your_username -e JUDGEDAEMON_PASSWORD=your_password domjudge/judgehost:7.0.3
246246
###################################################
247247

248248
# Enable cgroup functionality that judgehost needs, this requires a reboot

0 commit comments

Comments
 (0)