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

问题描述 投票:0回答:2

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

Caused by: java.io.IOException: Permission denied

这是我的配置

application.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
docker docker-compose permission-denied shinyproxy
2个回答
1
投票

我也遇到同样的问题,求解决方法

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

但是,我不明白为什么需要这样做,因为

/run/docker.sock
已经是
root:docker

这是 WSL2 下的。


0
投票

记录在项目符号 6 下:https://github.com/openanalytics/shinyproxy-config-examples/tree/master/02-containerized-docker-engine

确保你

--group-add $(getent group docker | cut -d: -f3)

© www.soinside.com 2019 - 2024. All rights reserved.