Run Nextflow on a Docker container #3782
-
Hi, I want to run Nextflow in a docker container because I want to avoid to maintain VM or run locally. Has anyone tried to create a container that is able to run nextflow and this calls a batch for the pipelines? for example, to run https://github.com/nextflow-io/rnaseq-nf? Example: run this on a container: nextflow -c nextflow.config run https://github.com/nextflow-io/rnaseq-nf --outdir s3://nextflowbatch/nextflow_env/results (Instead of running it in a virtual machine) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
I assume that you will also want to run your tasks isolated from each other within containers. The first issue that arises from this is that it'll run a container within a container and this is prone to several issues and thus should not be done. If you insist on running the Nextflow head job on a container, you can use the |
Beta Was this translation helpful? Give feedback.
-
Hi, I just opened an issue (#3811 ) that is related to this, however, I am a bit alarmed by the comment that there are problems with running containerized pipelines on a containerized nextflow server. Could you point me to those other discussions please? What I want to do is to have the nextflow server running as a docker container on a docker host, but also be able to run pipeline stages within other containers. This is because the nextflow server may need to be launched on one or more docker hosts; I want to be able to scale out the number of server instances as required. As for the pipeline stages, these may require very different environments / applications and it is not possible to provide all of them on the same platform, hence the need to provide containers for the pipeline stages. |
Beta Was this translation helpful? Give feedback.
I assume that you will also want to run your tasks isolated from each other within containers. The first issue that arises from this is that it'll run a container within a container and this is prone to several issues and thus should not be done.
If you insist on running the Nextflow head job on a container, you can use the
-d
or-dockerize
option from the CLI. But I warn you that there have even been discussions about deprecating this feature as it brings more issues than solutions.