【问题标题】:Shinyproxy error 500 : Failed to start container / Caused by: java.io.IOException: Permission deniedShinyproxy 错误 500:无法启动容器/原因:java.io.IOException:权限被拒绝
【发布时间】:2020-09-28 09:33:01
【问题描述】:

显示闪亮代理页面,验证后我可以看到导航栏,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


    【解决方案1】:

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

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

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

    这是在 WSL2 下。

    【讨论】:

    • 刚刚发现了我的旧线程......在 Ubuntu 下也是如此。 SO 替换内存
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-19
    • 1970-01-01
    • 1970-01-01
    • 2019-09-15
    相关资源
    最近更新 更多