Config - Security in Docker Flashcards
1
Q
On a host, how are a container and the host separated from each other?
A
Through the use of Linux namespaces
2
Q
Are processes running inside containers visible from the outside?
A
Yes, visible with a different pid than when viewed from inside the container
3
Q
In docker how do you specify, what user you want to run a docker image as, so as to not run it as the root user
A
‘docker run –user=1000 ubuntu sleep 3600’
User can also be set in the Dockerfile
4
Q
How does docker limit the amount of possibilities that a container started by the root user has?
A
- from startup the amount of capabilities is limited
- processes running inside the container do not have the same privileges as the root user
- capabilities can be added or withdrawn
5
Q
A
6
Q
A