Skip to main content

Docker Build Troubleshooting

Failed to Connect to Debian Source

During DeepVibe development, Jake's machine ceased building the DRF API container which is based on Debian Bullseye. This is also probably specific to the Docker Desktop on Windows with WSL environment.

The following steps were taken to resolve the issue:

  1. Check for WSL updates.

  2. Check for Docker Desktop updates.

  3. From Docker Desktop, stop and remove all containers, images, and volumes.

  4. Check /etc/wsl.conf Configuration: Ensure your /etc/wsl.conf file is properly configured. You can add the following lines to prevent automatic generation of resolv.conf:

    [network]
    generateResolvConf = false
  5. Manually Configure DNS: Since you've already flushed DNS, let's manually configure DNS in WSL. Edit the /etc/resolv.conf file and add Google's DNS servers:

    nameserver 8.8.8.8
    nameserver 8.8.4.4
  6. Restart the Windows computer.

  7. Define the variable export DOCKER_BUILDKIT=1 before attempting to rebuild.