Title: ERROR:Could not build image: Get "https://registry-1.docker.io/v2/": context deadline exceeded · Issue #2503 · docker-java/docker-java · GitHub
Open Graph Title: ERROR:Could not build image: Get "https://registry-1.docker.io/v2/": context deadline exceeded · Issue #2503 · docker-java/docker-java
X Title: ERROR:Could not build image: Get "https://registry-1.docker.io/v2/": context deadline exceeded · Issue #2503 · docker-java/docker-java
Description: ERROR:Could not build image: Get "https://registry-1.docker.io/v2/": context deadline exceeded When using docker-java to create an image through the Dockerfile, it reports an error: Could not build image: Get "https://registry-1.docker.i...
Open Graph Description: ERROR:Could not build image: Get "https://registry-1.docker.io/v2/": context deadline exceeded When using docker-java to create an image through the Dockerfile, it reports an error: Could not build...
X Description: ERROR:Could not build image: Get "https://registry-1.docker.io/v2/": context deadline exceeded When using docker-java to create an image through the Dockerfile, it reports an error: Could...
Opengraph URL: https://github.com/docker-java/docker-java/issues/2503
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ERROR:Could not build image: Get \"https://registry-1.docker.io/v2/\": context deadline exceeded","articleBody":"ERROR:Could not build image: Get \"https://registry-1.docker.io/v2/\": context deadline exceeded\n\nWhen using docker-java to create an image through the Dockerfile, it reports an error: Could not build image: Get \"https://registry-1.docker.io/v2/\": context deadline exceeded. However, when I use the docker command line to create the image based on the Dockerfile, there is no problem. What could be the reason?\n\nHere are the detailed error messages:\n\ncom.github.dockerjava.api.exception.DockerClientException: Could not build image: Get \"https://registry-1.docker.io/v2/\": context deadline exceeded\n\tat com.github.dockerjava.api.command.BuildImageResultCallback.getImageId(BuildImageResultCallback.java:71)\n\tat com.github.dockerjava.api.command.BuildImageResultCallback.awaitImageId(BuildImageResultCallback.java:50)\n\tat com.casit.skystart.task.DockerImageTaskHandler.buildImage(DockerImageTaskHandler.java:54)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:569)\n\tat org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:360)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n\tat org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:114)\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:840)","author":{"url":"https://github.com/zenghaiy","@type":"Person","name":"zenghaiy"},"datePublished":"2025-09-15T02:43:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2503/docker-java/issues/2503"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2203f975-986b-8f04-5763-e3fbb64adfc0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDDA:1FA80:AB9B31:E87B8B:6971C8F4 |
| html-safe-nonce | 5488f38d9f8e345349b1c4a80dbe7a5c845f4b4767acf5f2deac36f4427b5a4f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRERBOjFGQTgwOkFCOUIzMTpFODdCOEI6Njk3MUM4RjQiLCJ2aXNpdG9yX2lkIjoiNDAwMjk4NTcxODY1NTg2MzAyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b37260fa9cb9eab9f8707ace506911ea4ab3df86835c0ca826867d16707ebf2c |
| hovercard-subject-tag | issue:3416061574 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/docker-java/docker-java/2503/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d9a739320b86aea50b2cd509f169d3e80e57c5cb4266a83cf1b6feca8b6b9a6e/docker-java/docker-java/issues/2503 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d9a739320b86aea50b2cd509f169d3e80e57c5cb4266a83cf1b6feca8b6b9a6e/docker-java/docker-java/issues/2503 |
| og:image:alt | ERROR:Could not build image: Get "https://registry-1.docker.io/v2/": context deadline exceeded When using docker-java to create an image through the Dockerfile, it reports an error: Could not build... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zenghaiy |
| hostname | github.com |
| expected-hostname | github.com |
| None | ac615aa66802dad9a938c6abe95edf09ee43c0c7f508315b64b08612858ef32e |
| turbo-cache-control | no-preview |
| go-import | github.com/docker-java/docker-java git https://github.com/docker-java/docker-java.git |
| octolytics-dimension-user_id | 7772003 |
| octolytics-dimension-user_login | docker-java |
| octolytics-dimension-repository_id | 20415251 |
| octolytics-dimension-repository_nwo | docker-java/docker-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20415251 |
| octolytics-dimension-repository_network_root_nwo | docker-java/docker-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6b618569a5f93e0b31f97f620112341421ef5f69 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width