Running nextflow inside docker container #3177
Replies: 3 comments 4 replies
-
You should use nextflow as if you are using it locally. If you can specify your host container you could use nextflow/nextflow. You only need to specify I was not able to get Nextflow and Docker in Docker working with additional nested containers, but it should be possible. So if you need nested containers someone else has to elaborate on that. |
Beta Was this translation helpful? Give feedback.
-
Hello, @riley-seoyoon. If you're on a machine (your laptop, a remote server, any machine) and you can't run Nextflow there, because you don't have Java installed, for example, you can run Nextflow in a Docker container. You can do this using the option Be careful not to mix this with running Nextflow where you are and the pipeline in a Docker container. This is done with It can be the case that you want to run Nextflow inside a container, and the pipeline also. This is fine, and in this case, you would run Even though this is possible (docker within docker), it is not ideal and should be avoided. Nextflow is easy enough to install (it's just a file downloaded) and Java is practically everywhere, so you should be able to run nextflow natively wherever you are 😄 |
Beta Was this translation helpful? Give feedback.
-
This is relevant for environments like Docker executor of the GitLab's CI/CD. I'd appreciate any feedback or experience on that. |
Beta Was this translation helpful? Give feedback.
-
I am quite new to using docker and I am trying to figure out how to run nextflow.
My situation is that I can only install and run nextflow inside the docker container I am using (I cannot use the server environment, only the docker). When I use the "-profile test,docker" or the "-with-docker DOCKERIMAGE" option, I get an error because I do not have docker installed inside my container itself.
My question is, do I then have to use the options like I'm running nextflow inside a local environment? Or do I have to install docker inside my docker container (I don't know if this is a thing)?
I'm just a bit confused about how docker works so any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions