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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly