52 lines
1.3 KiB
Markdown
52 lines
1.3 KiB
Markdown
# Docker Desktop DNS Configuration
|
|
|
|
Since you're using Docker Desktop (default context), you may need to configure DNS in Docker Desktop settings.
|
|
|
|
## Steps to Configure DNS in Docker Desktop:
|
|
|
|
1. **Open Docker Desktop**
|
|
- Click the Docker Desktop icon in your system tray or start menu
|
|
|
|
2. **Go to Settings**
|
|
- Click the gear icon (⚙️) in the top right
|
|
- Or click "Settings" from the Docker Desktop menu
|
|
|
|
3. **Navigate to Docker Engine**
|
|
- In the left sidebar, click "Docker Engine"
|
|
|
|
4. **Add DNS Configuration**
|
|
- In the JSON configuration editor, add or update the `dns` field:
|
|
```json
|
|
{
|
|
"dns": ["8.8.8.8", "8.8.4.4", "1.1.1.1"],
|
|
"experimental": false,
|
|
"features": {
|
|
"buildkit": true
|
|
}
|
|
}
|
|
```
|
|
- If there's already content, just add the `"dns"` line to the existing JSON
|
|
|
|
5. **Apply Changes**
|
|
- Click "Apply & Restart" button
|
|
- Wait for Docker Desktop to restart
|
|
|
|
## Alternative: Test Without Docker Desktop Configuration
|
|
|
|
The WSL2 DNS fix we applied should be sufficient. Try running the network first:
|
|
```bash
|
|
./run.sh
|
|
```
|
|
|
|
If you still get DNS errors, then configure Docker Desktop DNS as described above.
|
|
|
|
## Verify Configuration
|
|
|
|
After configuring, test with:
|
|
```bash
|
|
docker pull alpine:latest
|
|
```
|
|
|
|
If this works, your Docker DNS is properly configured.
|
|
|