# Docker vs Virtual ENV Python

**URL:** <http://hpc-community.unige.ch/t/docker-vs-virtual-env-python/4379>\
**Category:** HPC General\
**Tags:** bamboo\
**Created:** [September 8, 2026, 12:57pm UTC](http://hpc-community.unige.ch/t/docker-vs-virtual-env-python/4379 "2026-09-08T12:57:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Irmak.Ozarslan](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/i/4bbf92/32.png) [@Irmak.Ozarslan](http://hpc-community.unige.ch/u/Irmak.Ozarslan)\
**Post date:** [September 8, 2026, 12:57pm UTC](http://hpc-community.unige.ch/t/docker-vs-virtual-env-python/4379/1 "2026-09-08T12:57:24Z")

</div>

Is it possible to create a virtual env in the HPC cluster bamboo? I would like to be able to version control my packages. For example like: .venv or conda. Is it better to run a Docker to version control instead? If so are there any examples of this with the sbatch script? Thank you!

---

<div class="post-metadata">

**Author:** ![Adrien.Albert](http://hpc-community.unige.ch/user_avatar/hpc-community.unige.ch/adrien.albert/32/188_2.png) [@Adrien.Albert](http://hpc-community.unige.ch/u/Adrien.Albert)\
**Post date:** [September 10, 2026, 10:00pm UTC](http://hpc-community.unige.ch/t/docker-vs-virtual-env-python/4379/2 "2026-09-10T22:00:55Z")

</div>

Hello Imar,

Cotainr may interest you , to create a conda file in container:

You can manage versioning via a yaml config file :

> [@\[tutorial\] use conda in a container](https://hpc-community.unige.ch/t/tutorial-use-conda-in-a-container/3529):
>
> Dear users, many HPC users use [Conda](https://www.anaconda.com/) to install the required software on the cluster and/or on their laptop. The advantage of using Conda for the end user is great flexibility and easy software installation. The downside is that each user installs their own copy of the software in their home or scratch directory, and a typical Conda installation creates thousands of files and puts a lot of pressure on our shared storage. The good news: it is quite easy to create a container, in our case with …

> **[How to Create a Conda Environment in a Container -...](https://doc.eresearch.unige.ch/hpc/applications_and_libraries?s%5B%5D=cotainr#how_to_create_a_conda_environment_in_a_container)**
>
> An important number of applications and libraries are available on Baobab and Yggdrasil, and we often offer multiple versions.
