docker - 无法在 docker 中使用 yarn web 在运行的 web vscode 中打开文件或路径
问题描述
安装依赖
RUN apt install make gcc g++ pkg-config -y
RUN npm install n -g && n 11
RUN npm install -g jshint
RUN apt-get install libx11-dev libxkbfile-dev -y && apt-get install libsecret-1-dev -y
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install yarn -y
RUN apt-get update -y && apt-get upgrade -y
docker exec -it container_id /bin/bash
git clone https://github.com/microsoft/vscode.git -b master
cd vscode
yarn
yarn watch
yarn web
我可以打开localhost:port
,但我无法打开任何文件或路径。
解决方案
推荐阅读
- java - CORS 在客户端和服务器位于相同 url 的情况下无法使用 CORS 过滤器
- html - HTML Chrome Favicon 不显示
- c# - .Net Core 5 Web Api - Swagger POST ok Xunit POST 错误
- java - Spring 不在 Config 子文件夹中查找
- kql - 如何改进热图的大型数据集的 KQL 查询
- ios - 适合初学者的 Metal iOS
- eclipse - 为什么生成 Getter 和 Setter 在 eclispe 中不起作用?
- python - PYSPARK - ROW_NUMBER() PARTITION BY 以获得最大购买金额
- redis - Redis 和谷歌云函数
- c++ - 如果我将流用于基类构造函数,我可以将流的其余部分用于派生吗?