Hi@akhtar,
The docker_container module has capabilitues keyword. This keyword is used to restrict the container according to use case.
- name: Create a container with limited capabilities
docker_container:
name: sleepy
image: ubuntu:16.04
command: sleep infinity
capabilities:
- sys_time
cap_drop:
- all