In this section, we will take a look at security context
$ docker run --user=1001 ubuntu sleep 3600
$ docker run -cap-add MAC_ADMIN ubuntu
securityContext
under the spec section.
```
apiVersion: v1
kind: Pod
metadata:
name: web-pod
spec:
securityContext:
runAsUser: 1000
containers:
To set the same context at the container level, then move the whole section under container section.
apiVersion: v1
kind: Pod
metadata:
name: web-pod
spec:
containers:
- name: ubuntu
image: ubuntu
command: ["sleep", "3600"]
securityContext:
runAsUser: 1000
capabilities
option
```
apiVersion: v1
kind: Pod
metadata:
name: web-pod
spec:
containers: