Skip to content

Commit 6e01b69

Browse files
committed
Remove executable bit from "/usr/local/bin/runc"
The runc script interferes with running Docker containers.
1 parent 7f70315 commit 6e01b69

File tree

1 file changed

+9
-0
lines changed
  • provision-contest/ansible/roles/docker/tasks

1 file changed

+9
-0
lines changed

provision-contest/ansible/roles/docker/tasks/main.yml

+9
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@
2323
- python3-pip
2424
- python3-docker
2525

26+
# The `runc` script interferes with running Docker containers.
27+
# Mark it as not executable such that containers can run normally.
28+
# If the machine does need the `runc` in the image, a custom fix has to be applied.
29+
- name: Remove executable bit from "/usr/local/bin/runc"
30+
when: ICPC_IMAGE
31+
file:
32+
dest: /usr/local/bin/runc
33+
mode: -x
34+
2635
- name: Load container archives
2736
include_tasks: load-container.yml
2837
with_filetree:

0 commit comments

Comments
 (0)