When I use Ansible to build a Docker image sometimes I get this error: requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
TASK [Build Docker image] ******************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
fatal: [xxxxxxxx]: FAILED! => {"changed": false, "msg": "An unexpected requests error occurred when trying to talk to the Docker daemon: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')
SUMMARY
When I use Ansible to build a Docker image sometimes I get this error:
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
ISSUE TYPE
COMPONENT NAME
community.docker.docker_image
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Alpine Linux 3.20
STEPS TO REPRODUCE
EXPECTED RESULTS
Docker image should be built.
ACTUAL RESULTS