# Docker sometimes fails to connect to github.com

**URL:** https://meta.discourse.org/t/docker-sometimes-fails-to-connect-to-github-com/250643
**Category:** Self-hosting
**Created:** [January 4, 2023, 1:40am UTC](https://meta.discourse.org/t/docker-sometimes-fails-to-connect-to-github-com/250643 "2023-01-04T01:40:13Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [January 4, 2023, 3:36pm UTC](https://meta.discourse.org/t/docker-sometimes-fails-to-connect-to-github-com/250643/2 "2023-01-04T15:36:03Z")

</div>

You don’t have exactly the problem stated in the thread you linked, and indeed you seem to have an intermittent problem, which is always the hardest to diagnose. But maybe you could try a manual fetch. I tried this, which is harmless:

```plaintext
# cd /var/discourse/
# ./launcher enter app
x86_64 arch detected.
# wget -O - -v https://github.com/discourse/logster.git/ |wc
--2023-01-04 15:30:25-- https://github.com/discourse/logster.git/
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/discourse/logster/ [following]
--2023-01-04 15:30:25-- https://github.com/discourse/logster/
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘STDOUT’

- [<=>] 231.22K --.-KB/s in 0.06s   

2023-01-04 15:30:26 (3.99 MB/s) - written to stdout [236767]

   2751 15860 236767
#

```

We see that “[github.com](http://github.com)” was translated to a reasonable IP address, was contacted, and returned some data. In fact the command run inside the container behaved very much like it does outside the container, and that’s as expected.

Are you using a supported installation recipe, on a well-known hosting company?

---

_[View the full topic](https://meta.discourse.org/t/docker-sometimes-fails-to-connect-to-github-com/250643)._
