在Rocker / Shiny Docker中部署闪亮的应用程序
好吧,我是 Docker
的新手,我需要在Docker容器中实现Shiny应用。
Well, I'm new at Docker
and I need to implement a Shiny app in a Docker Container.
我的图片来自 https://hub.docker.com/r/rocker/shiny / ,其中包括 Shiny Server
,但我不知道如何在服务器中部署我的应用程序。
I have the image from https://hub.docker.com/r/rocker/shiny/, that includes Shiny Server
, but I don't know how to deploy my app in the server.
我想在服务器中部署应用程序,将应用程序所需的软件包安装到Docker中,保存更改并导出映像/容器。
I want to deploy the app in the server, install the required packages for my app into the Docker, save the changes and export the image/container.
如我所说,我是 Docker
的新手,我不知道它的真正工作原理。
As I said, I'm new at Docker
and I don't know how it really works.
任何
链接( https://hub.docker.com/r/rocker/shiny/ )介绍了如何部署闪亮的服务器。
最简单的方法是:
docker run --rm -p 3838:3838 rocker / shiny
The link(https://hub.docker.com/r/rocker/shiny/) covers how to deploy the shiny server. Simplest way would be: docker run --rm -p 3838:3838 rocker/shiny
如果要扩展闪亮的服务器,您可以可以编写您自己的Dockerfile,并以闪亮的图像作为基础图像。( https:// docs。 docker.com/engine/reference/builder/ )
If you want to extend shiny server, you can write your own Dockerfile and start with shiny image as base image.(https://docs.docker.com/engine/reference/builder/)
Dockerfile:
FROM rocker / shiny:latest
Dockerfile: FROM rocker/shiny:latest