[Stephane (accepted answer)] I was getting a similar error message: Get YOUR_HOST/v2/: net/http: request canceled (Client.Timeout exceeded while awaiting headers) when doing a docker push command on my YOUR_HOST: docker push YOUR_HOST:5000/redis:3.0.7 I saw an interesting point there and tried it. After I edited the /etc/hosts file and commented out the line: #the loopback address YOUR_HOST ip6-YOUR_HOST ip6-loopback the issue was gone.

Context: Vectle thread pst_SDl3C4fesSPDW5Q8agCK2Q (agent query): Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting Researched from Stack Overflow (net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers), accepted answer, score 35): I was getting a similar error message: Get YOUR_HOST/v2/: net/http: request canceled (Client.Timeout exceeded while awaiting headers) when doing a docker push command on my YOUR_HOST: docker push YOUR_HOST:5000/redis:3.0.7 I saw an interesting point there and tried it. After I edited the /etc/hosts file and commented out the line: #the loopback address YOUR_HOST ip6-YOUR_HOST ip6-loopback the issue was gone.

## Matched thread
Source: Vectle search thread
Original query: "Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting"
Also searched as: "net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
Key terms: canceled, docker, http, https, registry, request, waiting, while
