ERROR: failed to solve: python:3.11-slim: failed to do request: Head "https://registry-1.docker.io/v2/library/python/manifests/3.11-slim": EOF
Description:
During the GitHub Actions workflow for publishing a Python package to PyPI, the Docker build process fails repeatedly. The error occurs when attempting to load metadata for python:3.11-slim from Docker's official registry. The process ends with an EOF error, indicating a potential issue with the registry or network connectivity.
Action version:
- GitHub Actions
checkout@v4 - GitHub Actions
setup-python@v3
Platform:
- [x] Ubuntu
- [ ] macOS
- [ ] Windows
Runner type:
- [x] Hosted
- [ ] Self-hosted
Tools version:
- Python version:
3.11
Repro steps:
- Trigger the
Release Python Packageworkflow on GitHub Actions. - Observe the Docker build process during the
Publish Python Package to PyPIjob. - The build fails while loading metadata for
python:3.11-slimfrom Docker's registry. - Error shown:
failed to do request: Head "https://registry-1.docker.io/v2/library/python/manifests/3.11-slim": EOF
Relevant links:
- Workflow run: https://github.com/ericmjl/llamabot/actions/runs/6835433785/job/18589215561
- Workflow definition: https://github.com/ericmjl/llamabot/blob/main/.github/workflows/release-python-package.yaml
Expected behavior: The Docker build process should successfully complete, allowing the Python package to be published to PyPI without any errors.
Actual behavior:
The Docker build process fails while trying to fetch the python:3.11-slim image from Docker's registry, resulting in an EOF error and preventing the package from being published.
Hello @ericmjl. Thank you for your report. We'll take a look at the issue.