dosubot[bot] commented on issue #28374:
URL: https://github.com/apache/superset/issues/28374#issuecomment-2099978941

   <!-- Answer -->
   To resolve the build failure and network error you're experiencing with 
Superset setup using Docker on Windows, follow these steps:
   
   1. **Switch to WSL2**: Superset's Docker Compose setup is not officially 
supported on Windows. Using WSL2 (Windows Subsystem for Linux) provides a Linux 
environment on Windows, which is more compatible with Superset's requirements.
   
   2. **Check Docker Desktop Configuration**: Ensure Docker Desktop is running 
correctly. Adjust firewall or antivirus settings to allow Docker network 
access. If using a proxy, configure Docker's proxy settings via Docker Desktop 
under "Resources" -> "Proxies".
   
   3. **Update Deprecated Dependencies**: Manually update the versions of 
deprecated dependencies listed in your `pyproject.toml`. Use `docker compose 
build --pull` to use the latest base images which might contain dependency 
updates.
   
   4. **Follow Docker Compose Setup Instructions**: Refer to the Superset 
documentation for Docker Compose setup. Ensure you're using the correct 
`docker-compose.yml` file for your setup. Allocate sufficient resources to 
Docker to avoid performance issues during the frontend build process.
   
   5. **Database Connection**: Use `host.docker.internal` instead of 
`localhost` to connect to local databases from within Docker containers on Mac 
and Windows. For Linux, use the appropriate IP address.
   
   6. **Use `docker compose pull`**: Regularly pull the latest images with 
`docker compose pull` before starting up to ensure you have the latest versions.
   
   For production environments, consider alternatives like Kubernetes, as 
`docker-compose` may not support high availability requirements.
   
   
   <!-- Dosu Comment Footer -->
   <details>
   <summary>
   
   #### Details
   </summary>
   
   **Sources**
   - [create new image docker](https://github.com/apache/superset/issues/22627)
   - [docker-compose up failed 
](https://github.com/apache/superset/issues/21978)
   - [Superset installation build fails using Docker on MS-Windows - fatal 
errors result in non-working 
system](https://github.com/apache/superset/issues/8790)
   - 
[pyproject.toml](https://github.com/apache/superset/blob/master/pyproject.toml)
   - 
[docs/docs/installation/docker-compose.mdx](https://github.com/apache/superset/blob/master/docs/docs/installation/docker-compose.mdx)
   - 
[docker-compose-non-dev.yml](https://github.com/apache/superset/blob/master/docker-compose-non-dev.yml)
   - [Dockerfile](https://github.com/apache/superset/blob/master/Dockerfile)
   - 
[docker/docker-frontend.sh](https://github.com/apache/superset/blob/master/docker/docker-frontend.sh)
   - 
[docs/docs/installation/kubernetes.mdx](https://github.com/apache/superset/blob/master/docs/docs/installation/kubernetes.mdx)
   - 
[helm/superset/templates/deployment.yaml](https://github.com/apache/superset/blob/master/helm/superset/templates/deployment.yaml)
   - 
[helm/superset/README.md](https://github.com/apache/superset/blob/master/helm/superset/README.md)
   - 
[helm/superset/values.yaml](https://github.com/apache/superset/blob/master/helm/superset/values.yaml)
   - 
[helm/superset/templates/deployment-worker.yaml](https://github.com/apache/superset/blob/master/helm/superset/templates/deployment-worker.yaml)
   
   <br/>
   
   **About Dosu**
   This response is meant to be useful and save you time. It is **not meant to 
be a precise solution**, but rather a starting point for your own research.
   
   Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is 
irrelevant.
   </details>
   
   *To continue the conversation, mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to