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: redirect.github.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:737a9167-6571-dd52-bb14-54858652d006 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B10A:30E8A:3DA6F7B:516FC50:69747A7A |
| html-safe-nonce | 7a756d01f48a401dd08ae220105d732b041d11d5036a227d73c402554cc83ca3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTBBOjMwRThBOjNEQTZGN0I6NTE2RkM1MDo2OTc0N0E3QSIsInZpc2l0b3JfaWQiOiI0ODEzODY1MTkzMjY5NjU2MTg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 33c887143ce7211dc1be02050ae6ec3e9c4bb869e95cf5fd7bc489ad6f2e5707 |
| 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 | e0b95d743b7672c9ac0e1032d5f117950182dc164a83434a7db86510e8f0b37c |
| 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 | 56fe7e2e8de6e57740bca50402351ea656f7a4bf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width