- Newest
- Most votes
- Most comments
Hello,
To fix the Docker build error in your Bitbucket Pipeline on a Windows instance, the Docker is configured to use named pipes. Set your daemon.json to {"hosts": ["npipe:///"]} and confirm "Expose daemon on tcp://localhost:port number without TLS" is unchecked in Docker Desktop settings. In your pipeline, set the Docker service's DOCKER_HOST environment variable to npipe:////./pipe/docker_engine.
Please look at Link.
https://stackoverflow.com/questions/67126094/how-to-connect-to-docker-daemon-in-bitbucket-pipeline
https://phoenixnap.com/kb/cannot-connect-to-the-docker-daemon-error
One option to check is to use the Docker in Docker containerization.
Please look at this link : https://stackoverflow.com/questions/67126094/how-to-connect-to-docker-daemon-in-bitbucket-pipeline
Relevant content
- asked 7 months ago