Docker localhost:5000 SSL timeout
See original GitHub issueHello,
I am getting a strange issue,
- http://localhost:5000/ correctly redirects to https://localhost:5000/
- https://localhost:5000/ does not respond and the request times out
Attempting diagnostics I ran
docker exec -t -i xxxx /bin/bash
bash-4.3# curl 127.0.0.1:5000
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to target URL: <a href="https://127.0.0.1:5000/">https://127.0.0.1:5000/</a>. If not click the link.bash-4.3#
bash-4.3# curl https://127.0.0.1:5000/
curl: (35) Unknown SSL protocol error in connection to 127.0.0.1:5000
And from the host system
curl https://localhost:5000/manage/
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 5000 (#0)
* Operation timed out after 10002 milliseconds with 0 out of 0 bytes received
* Curl_http_done: called premature == 1
* Closing connection 0
curl: (28) Operation timed out after 10002 milliseconds with 0 out of 0 bytes received
Unsure on how to proceed at this point in time
Repo is at commit: 3de5d868e208c3d3c3d3bdca2088d64bd0035da4 Docker doorman image built from this commit, also using postgres:latest from docker hub to provide and link the postgres service
docker-compose.yml in use is:
version: '3'
services:
postgres:
image: postgres:latest
ports:
- "5432:5432"
environment:
- "DEBUG=true"
- "POSTGRES_PASSWORD=t00m4nys3cr3t5"
doorman:
image: doorman:latest
ports:
- "5000:5000"
environment:
- "DOORMAN_ENROLL_SECRET=foo"
- "DOORMAN_SECRETS_KEY=doorman"
- "POSTGRES_USER=doorman"
- "POSTGRES_PASSWORD=t00m4nys3cr3t5"
- "POSTGRES_PORT=postgres"
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Deploying a minimal flask app in docker - server connection ...
The problem is you are only binding to the localhost interface, you should be binding to 0.0.0.0 if you want the container to...
Read more >Configuring a registry - Docker Documentation
The timeout for writing to the Redis instance. pool. pool: maxidle: 16 maxactive: 64 idletimeout: 300s. Use these settings to configure the behavior ......
Read more >How To Set Up a Private Docker Registry on Ubuntu 14.04
Publish to and pull Docker images from your own private Docker ... If you already have an SSL certificate set up or are...
Read more >docker_image – Manage docker images — Ansible Documentation
Parameters¶ ; http_timeout. integer. Timeout for HTTP requests during the image build operation. Provide a positive integer value for the number of seconds....
Read more >Setting Up Docker Registry 2.0 Using Cloud Storage
Docker allows users to push and pull images from a registry. The primary, and default, ... Next, generate your SSL signed certificates:
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Summary of workaround:
cd doorman/docker/service/api/; openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout server.key -out server.crt
cd doorman; docker build -t doorman:latest .
docker-compose.yml
similar todocker exec -ti <hash_of_container> /bin/bash
(rundocker ps -a to get the hash
)Do you mind submitting a PR to fix up these issues?