unable to run delve in eclipse che - could not launch process, operation not permitted

五迷三道 提交于 2019-12-12 04:47:29

问题


I am trying to use delve in Eclipse Che

Running Eclipse Che in docker with

--privileged

is not helping

docker run -it  --privileged --rm -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/data eclipse/che start

When running dlv debug main.go I get could not launch process: fork/exec /projects/desktop-go-simple/debug: operation not permitted

Can you run dlv debugger in Eclipse Che


回答1:


Adding --privileged adds capabilities to Eclipse Che CLI only. Instead of that add CHE_DOCKER_PRIVILEGED=true line to che.env file inside of Che data directory mounted to /data



来源:https://stackoverflow.com/questions/43987476/unable-to-run-delve-in-eclipse-che-could-not-launch-process-operation-not-per

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!