admin管理员组文章数量:1291113
I'm working for a company that would like to provide workbench instances without the "Root access" feature.
At the same time, developers need to use docker on workbench.
I tried to add the command usermod -a -G docker jupyter
in a startup script. cat /etc/group
reveals this line:
[...]
docker:x:997:jupyter
[...]
However, when I run docker ps
from a jupyter notebook terminal, I still get this error:
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied
I didn't find any previous forum post or reference in the workbench documentation to unlock docker permissions without the root access. GPT o3 doesn't give a better answer than "Check /var/run/docker.sock permissions"
.
本文标签: google cloud platformHow to run docker on workbench without root accessStack Overflow
版权声明:本文标题:google cloud platform - How to run docker on workbench without root access? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741516942a2382949.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论