# Why is Docker not widely used in multi-user cluster environments?

**URL:** <https://ask.cyberinfrastructure.org/t/why-is-docker-not-widely-used-in-multi-user-cluster-environments/205>\
**Category:** Q&A\
**Tags:** containers, docker, researcher\
**Created:** [May 11, 2018, 1:26pm UTC](https://ask.cyberinfrastructure.org/t/why-is-docker-not-widely-used-in-multi-user-cluster-environments/205 "2018-05-11T13:26:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ktrn](https://ask.cyberinfrastructure.org/user_avatar/ask.cyberinfrastructure.org/ktrn/32/554_2.png) [@ktrn](https://ask.cyberinfrastructure.org/u/ktrn)\
**Post date:** [May 11, 2018, 1:26pm UTC](https://ask.cyberinfrastructure.org/t/why-is-docker-not-widely-used-in-multi-user-cluster-environments/205/1 "2018-05-11T13:26:53Z")

</div>

I asked our System Administrator to install Docker so I could run some containers I downloaded from the web. However, I was told that it is not secure to install Docker on our cluster. What is the problem with it and is there any alternative?

**CURATOR:** Katia

---

<div class="post-metadata">

**Author:** ![raminder](https://ask.cyberinfrastructure.org/letter_avatar_proxy/v4/letter/r/58956e/32.png) [@raminder](https://ask.cyberinfrastructure.org/u/raminder)\
**Post date:** [June 22, 2018, 11:36am UTC](https://ask.cyberinfrastructure.org/t/why-is-docker-not-widely-used-in-multi-user-cluster-environments/205/2 "2018-06-22T11:36:18Z")

</div>

Docker containers need root privileges for full functionality which is not suitable for a shared HPC environment.  
Singularity is a container solution for HPC and it allows working with containers as a regular user. Docker containers may be imported to run via Singularity. Visit [https://singularity.lbl.gov/docs-docker](https://singularity.lbl.gov/docs-docker) to create a singularity image from the docker container. You should talk to your system admin to install singularity on compute nodes.

---

<div class="post-metadata">

**Author:** ![toreliza](https://ask.cyberinfrastructure.org/user_avatar/ask.cyberinfrastructure.org/toreliza/32/157_2.png) [@toreliza](https://ask.cyberinfrastructure.org/u/toreliza)\
**Post date:** [July 23, 2018, 11:30pm UTC](https://ask.cyberinfrastructure.org/t/why-is-docker-not-widely-used-in-multi-user-cluster-environments/205/3 "2018-07-23T23:30:51Z")

</div>

A slight elaboration on Raminder’s answer: while a Docker container requires root access to create and deploy, Singularity needs root privileges for installation but containers can be created without root access. A Singularity user is at the same level inside and outside of a Singularity container.

---

<div class="post-metadata">

**Author:** ![Gregory\_Kurtzer](https://ask.cyberinfrastructure.org/user_avatar/ask.cyberinfrastructure.org/gregory_kurtzer/32/177_2.png) [@Gregory\_Kurtzer](https://ask.cyberinfrastructure.org/u/Gregory_Kurtzer)\
**Post date:** [April 10, 2019, 7:20pm UTC](https://ask.cyberinfrastructure.org/t/why-is-docker-not-widely-used-in-multi-user-cluster-environments/205/4 "2019-04-10T19:20:22Z")

</div>

In addition to ave responses, Singularity also runs within the same PID thread, meaning, containers will run as the user, within the confines of the resource manager’s purview, and compatible with MPI and GPUs.
