Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

容器内启动后,如何打开本地文件夹 #92

Open
jiadongpo opened this issue Dec 14, 2023 · 1 comment
Open

容器内启动后,如何打开本地文件夹 #92

jiadongpo opened this issue Dec 14, 2023 · 1 comment

Comments

@jiadongpo
Copy link

使用 Docker 镜像

拉取镜像

docker pull ghcr.io/opensumi/opensumi-web:latest

运行(容器内端口必要是8000,代码里写了,对外端口18016可自定义)

docker run --rm -d -p 18066:8000/tcp ghcr.io/opensumi/opensumi-web:latest
浏览器打开 http://127.0.0.1:8080 进行预览或开发。

问题:如何打开本地文件夹。比如在容器登录后,访问服务。
使用场景:线上服务,给用户分配一下webide,用户临时不用时,给他停了,等用的时候再打开,再打开时,需要通过打开文件夹打开之前编辑的代码。

@erha19
Copy link
Member

erha19 commented Dec 14, 2023

@jiadongpo 可以参考这个 issue 自行实现一下 opensumi/core#1083 ,同时比较建议直接通过 workspaceDir 指定工作区方式打开。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants