最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

linux - VS Code Runs differently on Windows and Unix using devcontainers and docker - Stack Overflow

programmeradmin1浏览0评论

I have a machine learning environment build as a Dockerfile image and as a prebuilt image for my Deep Learning class. That is, when I build my container, I commit it and push it to dockerhub. So I get my class to use my prebuilt image rather than the image using the dockerfile which may change each time it is built. On Windows both versions work fine, but on Unix the prebuilt image has an error which I don't understand and can't get rid of.

[27758 ms] Container server: Error: listen EACCES: permission denied /tmp/.X11-unix/X0 at Server.setupListenHandle [as _listen2] (node:net:1886:21) at listenInCluster (node:net:1965:12) at Server.listen (node:net:2084:5) at /tmp/vscode-remote-containers-server-fdbe6c39-f861-4303-82ef-110eef885cab.js:12:10798 at new Promise () at /tmp/vscode-remote-containers-server-fdbe6c39-f861-4303-82ef-110eef885cab.js:12:10781 at async Promise.all (index 1)

Do you have any suggestions to fix this? I have tried adjusting the permissions on /tmp/.X11-unix/X0 but there is no change.

Code is available on Github as lovellbrian/course22 using branches gpu and gpufrozen.

I tried changing the ownership of /tmp/.X11-unix to my username but this didn't help. It seems to want to use X0 which is the console used by gdm.

发布评论

评论列表(0)

  1. 暂无评论