I am deploying the image https://hub.docker.com/r/codercom/code-server which is remote VS code.I have deployed this in Azure as steps mentioned in the link https://learn.microsoft.com/en-us/learn/modules/run-docker-with-azure-container-instances/2-run-aci. After deployment is successful if I browse it , its showing connection timeout
Asked
Active
Viewed 358 times
0
-
You need to provide more details. It's not enough to figure out what is the error you meet. – Charles Xu Mar 30 '20 at 06:08
-
I am deploying the image https://hub.docker.com/r/codercom/code-server which is remote VS code.I have deployed this in Azure as steps mentioned in the link https://learn.microsoft.com/en-us/learn/modules/run-docker-with-azure-container-instances/2-run-aci. After deployment is successful if I browse it , its showing connection timeout. @CharlesXu – San Mar 30 '20 at 06:15
-
Put the message in the question. It's more fitting. – Charles Xu Mar 30 '20 at 06:18
-
@CharlesXu I have put it there also. Did you find anything about this problem? – San Mar 30 '20 at 06:21
-
Any more questions? Does it solve your problem? Or what's more do you want? – Charles Xu Mar 31 '20 at 03:02
-
thanks @CharlesXu it solved my problem. I need another help if you don't mind, How can I open any angular project(in fact any project) in the VSCode hosted in that container. – San Apr 02 '20 at 08:54
-
You can add another question in SO with more messages as possible and then give me the link. I will take a try. – Charles Xu Apr 02 '20 at 08:57
-
@CharlesXu I have added it ( https://stackoverflow.com/questions/60987920/remote-vs-code-development-with-code-server ) did you understand my question right? – San Apr 02 '20 at 09:09
1 Answers
1
I don't know how do you deploy the container in Azure. But on my side, it works well and finally, you can see the login page as below:
I think the possible reason is that you forget to change the port into 8080 as the image shows. You can the example command:
docker run -it -p 127.0.0.1:8080:8080 -v "$PWD:/home/coder/project" codercom/code-server
So the image exposes the port 8080 which you also need to do like it did. Then the CLI command should be:
az container create -g your_group -n aci_name --image codercom/code-server --ip-address Public --ports 8080

Charles Xu
- 29,862
- 2
- 22
- 39