Skip to content

Commit

Permalink
Spicify the runc path when we use the containerd container engine
Browse files Browse the repository at this point in the history
and change the bin_dir path.

Signed-off-by: Jin Li <[email protected]>
  • Loading branch information
qlijin committed May 30, 2023
1 parent 94e33bd commit a07ab47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/container-engine/containerd/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ containerd_runc_runtime:
base_runtime_spec: cri-base.json
options:
systemdCgroup: "{{ containerd_use_systemd_cgroup | ternary('true', 'false') }}"
binaryName: "{{ bin_dir }}/runc"

containerd_additional_runtimes: []
# Example for Kata Containers as additional runtime:
Expand Down
4 changes: 4 additions & 0 deletions roles/container-engine/containerd/templates/config.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ oom_score = {{ containerd_oom_score }}

[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.{{ runtime.name }}.options]
{% for key, value in runtime.options.items() %}
{% if value|bool %}
{{ key }} = {{ value }}
{% else %}
{{ key }} = "{{ value }}"
{% endif %}
{% endfor %}
{% endfor %}
{% if kata_containers_enabled %}
Expand Down

0 comments on commit a07ab47

Please sign in to comment.