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
8
-
You need to provide more details. It's not enough to figure out what is the error you meet.Charles Xu– Charles Xu2020-03-30 06:08:09 +00:00Commented Mar 30, 2020 at 6:08
-
I am deploying the image hub.docker.com/r/codercom/code-server which is remote VS code.I have deployed this in Azure as steps mentioned in the link learn.microsoft.com/en-us/learn/modules/…. After deployment is successful if I browse it , its showing connection timeout. @CharlesXuSan– San2020-03-30 06:15:00 +00:00Commented Mar 30, 2020 at 6:15
-
Put the message in the question. It's more fitting.Charles Xu– Charles Xu2020-03-30 06:18:45 +00:00Commented Mar 30, 2020 at 6:18
-
@CharlesXu I have put it there also. Did you find anything about this problem?San– San2020-03-30 06:21:24 +00:00Commented Mar 30, 2020 at 6:21
-
Any more questions? Does it solve your problem? Or what's more do you want?Charles Xu– Charles Xu2020-03-31 03:02:42 +00:00Commented Mar 31, 2020 at 3:02
|
Show 3 more comments
2 Answers
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
Comments
On Linux Azure VM, I had to disable the firewall to clear the timeout, otherwise docker network would not work.
root@my_hostname:~# ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), deny (outgoing), deny (routed)
New profiles: skip
To Action From
-- ------ ----
22/tcp ALLOW IN Anywhere
Anywhere on lo ALLOW IN Anywhere
Anywhere DENY IN 127.0.0.0/8
9418/tcp ALLOW IN Anywhere
80/tcp ALLOW IN Anywhere
443/tcp ALLOW IN Anywhere
22/tcp (v6) ALLOW IN Anywhere (v6)
Anywhere (v6) on lo ALLOW IN Anywhere (v6)
Anywhere (v6) DENY IN ::1
9418/tcp (v6) ALLOW IN Anywhere (v6)
80/tcp (v6) ALLOW IN Anywhere (v6)
443/tcp (v6) ALLOW IN Anywhere (v6)
Anywhere ALLOW OUT Anywhere on lo
53 ALLOW OUT Anywhere
Anywhere ALLOW OUT Anywhere
Anywhere (v6) ALLOW OUT Anywhere (v6) on lo
53 (v6) ALLOW OUT Anywhere (v6)
Anywhere (v6) ALLOW OUT Anywhere (v6)
root@my_hostname:~# ufw disable
Firewall stopped and disabled on system startup
root@my_hostname:~# docker exec -it v12 sh
/opt/app $ nc -vz my_hostname 8445
my_hostname (my_ip:8445) open
