Replies: 1 comment 3 replies
-
The remote SSH and containers extensions do not support code-server unfortunately, and they might never (Microsoft only allows it to run on their own desktop VS Code product at the moment). The only way to do this with code-server would be to install code-server on the container itself then access it with a browser through a port or something like that, but that means you need a separate code-server for every container. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My remote server run some containers to service my coding work , such as nginx, mysql, php5, php7, php8. My code projects are on the server, and they mout on different php's container because of evey project maybe need the different php environment(such as PHP version, php extension), I have to isolate them.
I try to work on desktop vscode by the vscode extension--Dev Containers(ms-vscode-remote.remote-containers) a long time, it work! I can see the way is :
ssh connect my remote server in vscode's remote explorer, then it show the list of my containers on the remote server, if I chlick one of my PHP container, it will go into the container and open my project in new windows, I can get the php environment in this windows( some vscode extension such as PHP IntelliSense need it).
I know this way is like to remote ssh in container to dev, and it's perfect for my coding.
However, sometimes I need to code without a device that can run desktop vscode, then I found this awesome project and deloy it on my remote server by docker.
Now I can use my code-server to edit my project files, but the promble is I can't get the php environment ! The vscode extension--Dev Containers not show on the code-server extension market. I have seen some issue about "code-server ssh remote" but found the way.
So, how to connect my PHP Container in my code-server? Or other suggests?
Beta Was this translation helpful? Give feedback.
All reactions