Force cgroupfs cgroup manager with podman on ubuntu
Per https://github.com/containers/podman-compose/issues/209 it seems this is a known thing with non root containers, podman, and Ubuntu. Just apply the necessary woraround in a config file so that we don't have to be aware of it every time we try to use podman in this way. It also makes using podman-compose simpler. Change-Id: Ic024e242d99b7f0d4fbd4cf2c3489022b364672d
This commit is contained in:
parent
45b70f4a56
commit
2b37cf7a9e
@ -21,3 +21,14 @@
|
||||
file:
|
||||
state: absent
|
||||
path: /etc/containers/registries.conf
|
||||
|
||||
- name: Create containers config dir
|
||||
file:
|
||||
path: '{{ ansible_user_dir }}/.config/containers'
|
||||
state: directory
|
||||
- name: Force cgroup manager to cgroupfs for Ubuntu
|
||||
copy:
|
||||
content: |
|
||||
[engine]
|
||||
cgroup_manager = "cgroupfs"
|
||||
dest: '{{ ansible_user_dir }}/.config/containers/containers.conf'
|
||||
|
@ -10,3 +10,14 @@
|
||||
- golang-github-containernetworking-plugin-dnsname
|
||||
state: present
|
||||
become: yes
|
||||
|
||||
- name: Create containers config dir
|
||||
file:
|
||||
path: '{{ ansible_user_dir }}/.config/containers'
|
||||
state: directory
|
||||
- name: Force cgroup manager to cgroupfs for Ubuntu
|
||||
copy:
|
||||
content: |
|
||||
[engine]
|
||||
cgroup_manager = "cgroupfs"
|
||||
dest: '{{ ansible_user_dir }}/.config/containers/containers.conf'
|
||||
|
@ -25,3 +25,14 @@
|
||||
file:
|
||||
state: absent
|
||||
path: /etc/containers/registries.conf
|
||||
|
||||
- name: Create containers config dir
|
||||
file:
|
||||
path: '{{ ansible_user_dir }}/.config/containers'
|
||||
state: directory
|
||||
- name: Force cgroup manager to cgroupfs for Ubuntu
|
||||
copy:
|
||||
content: |
|
||||
[engine]
|
||||
cgroup_manager = "cgroupfs"
|
||||
dest: '{{ ansible_user_dir }}/.config/containers/containers.conf'
|
||||
|
Loading…
Reference in New Issue
Block a user