How to prevent root of the host OS from accessing content inside a container?

Viewed 860

We are new to container technology and are currently evaluating whether it can be used in our new project. One of our key requirements is data security of multi-tenants. i.e. each container contains data that is owned by a particular tenant only. Even we, the server admin of the host servers, should NOT be able to access the content inside a container.

By some googling, we know that root of the host OS can execute command inside a container, for example, by the "docker execute" command. I suppose the command is executed with root privileges? How to get into a docker container?

We wonder if such kinds of access (not just "docker execute", but also any method to access a container's content by server admin of the host servers) can be blocked/disabled by some security configurations?

1 Answers

For the bash command specifically, Add the exit command in the end of the .bashrc file. So the user logs in and finally gets kicked out.

You can go through this link for the better understanding of why it is not implemented by default https://github.com/moby/moby/issues/8664

Related