繁体   English   中英

Shinyproxy 错误 500:无法启动容器/导致:java.io.IOException:权限被拒绝

[英]Shinyproxy error 500 : Failed to start container / Caused by: java.io.IOException: Permission denied

显示了 Shinyproxy 页面,经过身份验证后,我可以看到导航栏,2 个指向 2 个应用程序的链接。 然后,当我单击其中一个时,我收到错误 500/“无法启动容器”在堆栈中,我可以看到:

Caused by: java.io.IOException: Permission denied

这是我的配置

应用程序.yml:

proxy:
  title: Open Analytics Shiny Proxy
 # landing-page: /
  port: 8080
  authentication: simple
  admin-groups: scientists
  # Example: 'simple' authentication configuration
  users:
  - name: jack
    password: password
    groups: scientists
  - name: jeff
    password: password
    groups: mathematicians
  # Example: 'ldap' authentication configuration
  # Docker configuration
  #docker:
    #cert-path: /home/none
    #url: http://localhost:2375
    #port-range-start: 20000
  specs:strong text
  - id: 01_hello
    display-name: Hello Application
    description: Application which demonstrates the basics of a Shiny app
    container-cmd: ["R", "-e", "shinyproxy::run_01_hello()"]
    container-image: openanalytics/shinyproxy-demo
    access-groups: [scientists, mathematicians]
  - id: 06_tabsets
    container-cmd: ["R", "-e", "shinyproxy::run_06_tabsets()"]
    container-image: openanalytics/shinyproxy-demo
    access-groups: scientists

logging:
  file:
    shinyproxy.log

Shinyproxy-docker-compose.yml:

version: '2.4'
services:
    shinyproxy:
        container_name: shinyproxy
        image: openanalytics/shinyproxy:2.3.1
        restart: always
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock
            - ./application.yml:/opt/shinyproxy/application.yml
        privileged: true
        ports:
            - 35624:8080

我有同样的问题,解决方法

sudo chown $USER:docker /run/docker.sock

但是,我不明白为什么需/run/docker.sock ,因为/run/docker.sock已经是root:docker /run/docker.sock

这是在 WSL2 下。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM