Skip to content

cannot create file with Nextflow Docker #2448

@lizihuang1

Description

@lizihuang1

I am trying to used Nextflow Docker from DockerHub (https://hub.docker.com/r/nextflow/nextflow). A simplest file was created:

#!/usr/bin/env nextflow
process readme {
output:
file "readme.txt"

"""
echo "hello world\n" >> readme.txt
"""

}

The command is "docker run -it --rm
-v /home/Zhuang/data/trf:/home/Zhuang/data/trf
-w /home/Zhuang/data/trf
nextflow/nextflow:21.10.0 nextflow run /home/Zhuang/data/trf/code/trftmp/main.nf ".

And I got the error "NOTE: Missing output file(s) readme.txt expected by process readme ([:])". No readme.txt was created in work dir.
Everything was fine when I run without docker ("nextflow/nextflow:21.10.0 nextflow run
home/Zhuang/data/tractoflow/code/tractoflowtmp/main.nf").

Does anyone have any ideas? Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions