Nahian Pathan
2001

2001

GoLand: dlv permission denied when running inside a docker container

Nahian Pathan's photo
Nahian Pathan

Published on Oct 12, 2021

1 min read

The error:

test2json: fork/exec /tmp/988678b6-2874-4583-9b8d-36b71fde9f2f/dlv: permission denied

It just means that /tmp needs permission for it be shared between or your local machine and docker container.

Just follow the step below:

  • Go to Run Targets
  • Select you container
  • Click on the "..."
  • Find "Path Mappings"
  • Click "+" and add "/tmp" for Virtual Machine Path and Local Path

In case you want to get started with GoLand + Docker, check out this link.

Happy debugging!

 
Share this