Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write permission error when running "download" with docker as non-root user #1318

Open
fa2k opened this issue Nov 15, 2021 · 1 comment
Open
Labels
bug Something isn't working command line tools Anything to do with the cli interfaces

Comments

@fa2k
Copy link
Contributor

fa2k commented Nov 15, 2021

Description of the bug

I get a permission error when running the nf-core download command through Docker with the -u option to set the user & group IDs (as described in the docs https://nf-co.re/tools/#installation).

This is a minor problem, because it works fine without -u.

Steps to reproduce

Steps to reproduce the behaviour:

  1. Command line:
docker run -itv `pwd`:`pwd` -w `pwd` -u $(id -u):$(id -g)  nfcore/tools:dev download --singularity-cache-copy -c singularity -x tar.gz rnaseq


? Select release / branch: 3.4  [release]
? Define $NXF_SINGULARITY_CACHEDIR for a shared Singularity image download folder? [y/n]: n
  1. See error:
AssertionError: Command 'nextflow config -flat nf-core-rnaseq-3.4/workflow' returned non-zero error code '1':
[red]> mkdir: cannot create directory ‘//.nextflow’: Permission denied
mkdir: cannot create directory ‘//.nextflow’: Permission denied

Expected behaviour

It downloads the pipeline.

System

  • Hardware: Mac Mini
  • Executor: Docker
  • OS: macOS 11.6.1
  • Version of nf-core/tools: nf-core/tools version 2.2.dev0 (and earlier)
  • Python version: N/A
@fa2k fa2k added the bug Something isn't working label Nov 15, 2021
@ewels ewels added the command line tools Anything to do with the cli interfaces label Dec 18, 2021
@kenibrewer
Copy link
Member

I've encountered this bug too with the docker alias suggestion. I think it's related to Issue #734 . Also fixed by removing the -u parameter from my docker alias.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working command line tools Anything to do with the cli interfaces
Projects
None yet
Development

No branches or pull requests

3 participants