-
jb官方给了个jetbrain project server的docker容器配置: https://github.com/JetBrains/projector-docker ,所以我就直接用了。
-
在linux下执行命令
systemctl start docker
sudo docker pull registry.jetbrains.team/p/prj/containers/projector-phpstorm
#我的项目目录在 /home/zjsxwc/workspace/project 下 所以把这个目录挂到docker的/home/project 下
sudo docker run --rm -p 8887:8887 -v /home/zjsxwc/workspace/project:/home/project -it registry.jetbrains.team/p/prj/containers/projector-phpstorm
- 在win虚拟机浏览器访问linux docker机的8887端口,就能在浏览器远程开发了: