spotify / docker-client

INACTIVE: A simple docker client for the JVM
Apache License 2.0
1.43k stars 548 forks source link

very very slow with remote docker #1175

Closed mohapsub closed 4 years ago

mohapsub commented 4 years ago

I use sportify 8.16.0 java docker client to build and push docker image using a remote docker instance. Sometimes for the same build it runs quick(in a min) but most of times it takes hours to build same image from same code base. Its very inconsistent in terms of speed.

Is this a BUG REPORT or FEATURE REQUEST?:

Description

[Add feature/bug description here]

How to reproduce

[Add steps on how to reproduce this issue]

What do you expect

Faster docker build [Describe what do you expect to happen]

What happened instead

Sometimes it run for hours for docker build [Describe the actual results]

Software:

[Paste full backtrace here]
mattnworb commented 4 years ago

Have you tried passing a ProgressHandler to the build method so you can see progress messages, to know which part is "slow"?

mohapsub commented 4 years ago

its not very consistent, sometimes it works fine. most of the times each of line execution of docker file is very slow. Even a simple copy a file(less than 1 kb) takes more than 5 mins. I am not very familiar with progress handler. Will this help in improving perf?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.