mirror of https://github.com/ceph/ceph-ansible.git
iscsigw: remove `--cap-add=all` from `podman run` cmd
As of podman `2.0.5`, `--cap-add` and `--privileged` are exclusive
options.
```
Nov 30 13:56:30 magna089 podman[171677]: Error: invalid config provided: CapAdd and privileged are mutually exclusive options
```
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1902149
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit d40dd764e0
)
4.2rc
parent
ef154613c8
commit
0d22598806
|
@ -28,7 +28,6 @@ ExecStart=/usr/bin/{{ container_binary }} run --rm \
|
|||
{% endif -%}
|
||||
-v /etc/localtime:/etc/localtime:ro \
|
||||
--privileged \
|
||||
--cap-add=ALL \
|
||||
--net=host \
|
||||
-v /dev:/dev \
|
||||
-v /dev/log:/dev/log \
|
||||
|
|
|
@ -28,7 +28,6 @@ ExecStart=/usr/bin/{{ container_binary }} run --rm \
|
|||
{% endif -%}
|
||||
-v /etc/localtime:/etc/localtime:ro \
|
||||
--privileged \
|
||||
--cap-add=ALL \
|
||||
--net=host \
|
||||
-v /dev:/dev \
|
||||
-v /dev/log:/dev/log \
|
||||
|
|
|
@ -29,7 +29,6 @@ ExecStart=/usr/bin/{{ container_binary }} run --rm \
|
|||
-v /etc/localtime:/etc/localtime:ro \
|
||||
--privileged \
|
||||
--net=host \
|
||||
--cap-add=ALL \
|
||||
-v /dev:/dev \
|
||||
-v /lib/modules:/lib/modules \
|
||||
-v /etc/ceph:/etc/ceph \
|
||||
|
|
Loading…
Reference in New Issue