follow these steps:
- Open a terminal and navigate to the directory where the Dockerfile is located.
- Build the Docker image by running the following command:
$ docker build -t nextflow-genomic .
Run the container with the following command
$ docker run -it -d -v "$(pwd):/home" --name nextflow-genomic nextflow-genomic
If you get a name conflict error, run this command before re-running the container
docker stop nextflow-genomic
Run NextFlow in the container
$ docker exec -it nextflow-genomic nextflow run main.nf
docker exec -it nextflow-genomic bash
Rebuild using:
$ docker build --no-cache -t nextflow-genomic .