SOLVED: cURL error 6: Could not resolve host: api.wordpress.org
winstonford opened this issue · 0 comments
winstonford commented
In Tools > Site Health
I get this msg:
Your site is unable to reach WordPress.org at 198.143.164.251, and returned the error: cURL error 6: Could not resolve host: api.wordpress.org
This solved it:
Docker Desktop > Preferences > Docker Engine:
I replaced
{
"debug": true,
"experimental": false
}
with
{
"dns": ["8.8.8.8", "192.168.0.1"]
}
and clicked
Apply and Restart
then did:
docker-compose up -d
The setting lives here:
~/.docker/daemon.json
Codebase
Built-in vanilla WordPress
Host OS
macOS 12.1 Monterrey
Docker info output
mbpro13:cnpy_io winstonford$ docker info
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Build with BuildKit (Docker Inc., v0.4.2-docker)
scan: Docker Scan (Docker Inc., v0.5.0)
Server:
Containers: 12
Running: 6
Paused: 0
Stopped: 6
Images: 10
Server Version: 20.10.0
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 269548fa27e0089a8b8278fc4fc781d7f65a939b
runc version: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
init version: de40ad0
Security Options:
seccomp
Profile: default
Kernel Version: 4.19.121-linuxkit
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.942GiB
Name: docker-desktop
ID: WHY4:GTOZ:2J35:YF7E:NCK3:ITQC:VXC2:IX3E:WGHA:CCSA:MUBD:3TXU
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: gateway.docker.internal:3128
HTTPS Proxy: gateway.docker.internal:3129
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
Docker compose file
Make sure you remove all commented services.
# Content of your docker-compose.yml file. Make sure you remove all sensible information you might have there.
Logs output
# Run "docker-compose logs [service]". Let's say you get 500 error for some reason then it'll be helpful to provide logs for php and http server (nginx/apache) services.