i have a question and a problem about capabilities.
Why my program work when i run docker run --cap-add=NET_ADMIN ... ?
And it's doesn't work if i run my program with file .yml which is:
containers:
- name: snake
image: docker.io/kelysa/snake:lastest
imagePullPolicy: Always
securityContext:
privileged: true
capabilities:
add: ["NET_ADMIN","NET_RAW"]
What is the difference between run docker with --cap-add and run a pod with the same capabilities ?