Docker pull rate limit

This commit is contained in:
lunardunno 2025-06-19 07:04:19 +04:00 committed by GitHub
parent 2605978889
commit 4d8d885d3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -460,6 +460,9 @@ ErrorCode ServerController::buildContainerWorker(const ServerCredentials &creden
return ErrorCode::ServerDockerOnCgroupsV2; return ErrorCode::ServerDockerOnCgroupsV2;
if (stdOut.contains("cgroup mountpoint does not exist")) if (stdOut.contains("cgroup mountpoint does not exist"))
return ErrorCode::ServerCgroupMountpoint; return ErrorCode::ServerCgroupMountpoint;
if (stdOut.contains("have reached") && stdOut.contains("pull rate limit"))
return ErrorCode::DockerPullRateLimit;
return error; return error;
} }