bioboxes / rfc

Request for comments on interchangeable bioinformatics containers
http://bioboxes.org
MIT License
40 stars 9 forks source link

Encourage security-awareness when using Docker #164

Open fungs opened 9 years ago

fungs commented 9 years ago

Pulling a Docker container means installing foreign code on your local machine. This means that malicious or defective programs can

This means that in the future we should follow best practices for Docker implementations when

A recent list of suggestions is compiled at http://linux-audit.com/docker-security-best-practices-for-your-vessel-and-containers/

michaelbarton commented 9 years ago

Could you provide some examples of how we might encourage better security for users of bioboxes?

fungs commented 9 years ago

Could you provide some examples of how we might encourage better security for users of bioboxes?

Following the cited guidelines, one could for instance

  1. give recommendations how to run and not to run containers,
  2. restrict network access by default,
  3. use a distinct UNIX user and group in the container and map that to the current user ID

Maybe these are not urgent at the moment, since the techniques are still emerging and we have still few users, but they should be considered alongside the development of the bioboxes command line tools (aka wrapper or caller).

fungs commented 8 years ago

Guidelines how to build secure Docker containers. https://youtu.be/LmUw2H6JgJo

As of version 1.10, there is a user mapping feature in Docker. This means, that the container root can be some other user on the host.