Is ping a good way to test for internet connectivity?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- cli, networking
Research direction
Start with the divio doctor entry point and locate the docker-server-ping check described in the issue. Review how it tests Docker Engine internet connectivity and whether an HTTP(S) check better reflects the traffic required by divio project setup. Done means the check no longer rejects networks where HTTP and HTTPS work but ping is blocked.
Written by the indexing model from the issue text.
Description
I'm currently working via corporate Wi-Fi network on which pings fail, but regular HTTP and HTTPS traffic is fine.
I'm finding that commands such as divio project setup … will fail, with divio doctor reporting the following:
$ divio doctor
Verifying your system setup
✓ Login
✓ Git
✓ Docker Client
✓ Docker Machine
✓ Docker Compose
✓ Docker Engine Connectivity
✖ Docker Engine Internet Connectivity
✓ Docker Engine DNS Connectivity
The following errors occurred:
Docker Engine Internet Connectivity:
> Command 'docker run --rm busybox:1.30 ping -c 1 -W 5 8.8.8.8' returned non-zero exit status 1
> The 'ping' command inside docker is not able to ping 8.8.8.8. This might be due to missing internet connectivity, a firewall or a network configuration problem.
I can put "skip_doctor_checks": ["docker-server-ping"] into ~/.aldryn and then everything works fine.
Would it make sense to change the ping check to something like a cURL check to ensure HTTP(S) traffic works? As far as I understand things, that's what we're actually interested in confirming here.
- Dominant language
- Python
- Stars
- 23
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from divio/divio-cli
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 50/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100