I use docker-squash as the last step of the build command. There’s been some changes to the build env, which broke the build script.
It now terminates with:
2024-07-11 21:40:25,930 root ERROR Could not create Docker client, please make sure that you specified valid parameters in the 'DOCKER_HOST' environment variable.
2024-07-11 21:40:25,930 root ERROR Error while creating the Docker client: Error while fetching server API version: Not supported URL scheme http+docker
2024-07-11 21:40:25,930 root ERROR Execution failed, consult logs above. If you think this is our fault, please file an issue: https://github.com/goldmann/docker-squash/issues, thanks!
Can you tell me what changed, how can I revert and what is the correct value for DOCKER_HOST?
I found a single issue in docker-squash about this, it requires setting the correct DOCKER_HOST value:
This is the related part of my yml file. As you can see, everything is pinned, yet it’s still broken:
version: 2.1
jobs:
build_base:
docker:
- image: cimg/python:3.9
steps:
- setup_remote_docker:
version: 20.10.24
- run: pip install docker==6.1.3 docker-squash==1.1.0 --disable-pip-version-check