Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection refused #9

Open
omarsawalhah opened this issue Aug 13, 2017 · 4 comments
Open

Connection refused #9

omarsawalhah opened this issue Aug 13, 2017 · 4 comments

Comments

@omarsawalhah
Copy link

After Successfully installing and starting this image I got this error

ssh root@localhost -p 49160
ssh: connect to host localhost port 49160: Connection refused
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d74ba2f4933b araczkowski/oracle-apex-ords "/entrypoint.sh" 52 minutes ago Up 52 minutes 0.0.0.0:1521->1521/tcp, 0.0.0.0:8080->8080/tcp, 0.0.0.0:49160->22/tcp oracleapex

Regards,

@araczkowski
Copy link
Owner

try to connect from your host to a ruining container via docker's attach command

by ID:
$ sudo docker attach d74ba2f4933b
or by Name
$ sudo docker attach araczkowski/oracle-apex-ords

@omarsawalhah
Copy link
Author

While the docker daemon is running

sudo docker attach araczkowski/oracle-apex-ords
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

@anand-gondkar
Copy link

Hi,
I am also facing same issue. I just did below in my Windows env docker -
docker pull araczkowski/oracle-apex-ords
docker run -d --name ora -p 49160:22 -p 8080:8080 -p 1521:1521 araczkowski/oracle-apex-ords

$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
da618da70c52 araczkowski/oracle-apex-ords "/entrypoint.sh" 32 minutes ago Up 31 minutes 0.0.0.0:1521->1521/tcp, 0.0.0.0:8080->8080/tcp, 0.0.0.0:49160->22/tcp ora

http://localhost:8080/ords/apex --> this doesn't connect
I tried below -
$ ssh root@localhost -p 49160
ssh: connect to host localhost port 49160: Connection refused

Appreciate your pointers on this. Thanks.

@araczkowski
Copy link
Owner

Hi, I don't have Windows to check. It was developed and tested on Linux. Don't know how docker works on Windows, maybe the issue is with docker - not mapping ports to localhost on Windows.
There is a bigger discusion here docker/for-win#204

You can try to check the solution/workaround from the end of this topic and try to access <docker-machine ip>:<exposed port> instead of localhost:<exposed port>.

Or you can try to connect from your host to a ruining container via docker's attach command

by ID:
$ sudo docker attach da618da70c52
or by Name
$ sudo docker attach araczkowski/oracle-apex-ords

good luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants