Updated on 2023-11-28 GMT+08:00

Connection Timed Out

Symptom 1

After you add the deployment action Run Docker Command and set Command to pull, the error message request canceled while waiting for connection is displayed.

Cause Analysis

The image to be pulled is not tagged with the repository address, repository branch, or username, or the tag information is incorrect.

Solution

Enter a correct and complete image name, and try to pull the image again.

Symptom 2

After you add the deployment action Run Docker Command and set Command to push, the error message request canceled while waiting for connection is displayed.

Cause Analysis

The image to be pushed is not tagged with the repository address, repository branch, or username, or the tag information is incorrect.

Solution

Run the tag command to tag the correct repository branch information for the image to be pushed, and try to push the image again.

Symptom 3

After you add the deployment action Run Docker Command and set Command to login, the error message request canceled while waiting for connection(Client.Timeout exceeded while awaiting headers) is displayed.

Cause Analysis

  1. The image repository address is incorrect. As a result, the connection fails and Docker fails to verify the v2 interface.
  2. The host does not have the permission to access external networks or is not configured with a proxy. As a result, the connection to the remote image repository times out.

Solution

  1. Check the image repository address to ensure that it is correct and reachable.
  2. Configure a proxy for the host to connect to the image repository.

Running Docker Commands FAQs

more