Pushing the image to Docker Hub takes a long time
See original GitHub issueEnvironment:
- Jib version: 1.5.0
- Build tool: Gradle 5.6.2
- OS: MacOSX 10.14.6
Description of the issue:
Push the image to Docker Hub initially takes extremely long (almost 5 mins). Subsequent push operations are much faster (seconds).
Expected behavior:
Pushing an image to Docker Hub should match the execution time when using Docker Engine.
Steps to reproduce:
- Clone https://github.com/bmuschko/todo-web-service
- Execute
./gradlew jib
Log output:
$ ./gradlew jib
> Task :jib
Containerizing application to bmuschko/todo-web-service:1.0.0...
Container entrypoint set to [java, -cp, /app/resources:/app/classes:/app/libs/*, com.bmuschko.todo.webservice.Application]
Built and pushed image as bmuschko/todo-web-service:1.0.0
Executing tasks:
[============================ ] 92.5% complete
> preparing application layer pushers
BUILD SUCCESSFUL in 4m 58s
3 actionable tasks: 1 executed, 2 up-to-date
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:16 (9 by maintainers)
Top Results From Across the Web
Docker push takes a really long time - Stack Overflow
The main culprit is the docker push step. For both Docker Hub and Quay.io, it takes an unrealistically long time to push images....
Read more >Push to docker hub seems very slow
My pushes seems excessively slow. (it takes nearly 10 minutes to push a 16 MB image). I found a lot of posts referring...
Read more >Docker push is taking forever - Reddit
I've restarted Docker and it still takes forever. I'm trying to upload a 177.7 MB image and it has only gone through 5.567...
Read more >How We Cut Our Docker Push Time by 90% - DZone DevOps
This push can be frustratingly slow, especially on home networks. Waiting 30 minutes for the image to upload before being able to start ......
Read more >Six Ways to Build Docker Images Faster (Even in Seconds)
Something had to be done about that. We decided to figure out why building Docker images took so long and how to fix...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@TadCordle Thanks. I tried it out and its close to the numbers I see with version 1.4.0.
@chanseokoh No, I am not using any such tag and logged into Docker container on Mac. We are using Jib plugin and is run as part of “deploy” phase in the following way:
Now, when I run the build of the project version contains SNAPSHOT it gets pushed effortlessly as it always does. However, if the ${project.version} contains a release it struggles and ends up with a credentials error. The same code works if I explicitly specify the version 1.4.0.
We push to dockerhub by the way. Hope this info helps. Thank you very much!