question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

local docker permissions problems

See original GitHub issue

I have to start cromwell with sudo to be able to run anything in docker. In the same time when I start cromwell as sudo it creates all folders with root privileges and I have things like: /bin/bash: /root/bedtest/7702b69d-25ac-4d3e-964c-be15181a59c5/call-coverage/execution/script: Permission denied in stderr.

Here is the WDL that I run:

workflow bedtest {

  File first
  File second

  call coverage {
    input:first=first,second=second
  }
}

task coverage {

  File first
  File second

  command {
    bedtools coverage -sorted -a $first -b $second -counts > counts.txt
  }

  runtime {
    docker: "biocontainers/bedtools"
  }

  output {
    File counts = "counts.txt"
  }
}

Here are the inputs that I pass through API:

JSONObject(
    "bedtest.first" -> "/home/antonkulaga/data/assembly4/4_sorted.bam",
    "bedtest.second" -> "/home/antonkulaga/data/assembly4/9_sorted.bam"
  )

P.S. I also tried:

sudo usermod -aG docker $USER

that allows to run docker without sudo. The problem remains the same.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
antonkulagacommented, Mar 11, 2017

In the latest version docker works like a charm, thank you for fixing this!

0reactions
geoffjentrycommented, Mar 12, 2017

Perfect, thanks for the update

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix docker: Got permission denied issue - Stack Overflow
Fix Docker Issue: (Permission denied) · Create the docker group if it does not exist: sudo groupadd docker · See number of super...
Read more >
Troubleshooting Docker Permission Denied Problems
Many factors could lead to a permission denied error while connecting to Docker. One of those factors is that you may be running...
Read more >
Avoiding Permission Issues With Docker-Created Files
One frequent solution, is to “chown” your shared folder again and again. It's tedious and there is a better way: read on to...
Read more >
How to Fix Docker Permission Denied? - phoenixNAP
Docker outputs the "Permission Denied" error when a non-root user without sufficient privileges attempts to execute a Docker command. This ...
Read more >
How to fix docker: Got permission denied while trying to ...
I've just installed docker but I have to run it with sudo every time. If I don't add sudo I get the following...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found