New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose super slow on macOS Catalina #6956
Comments
Hello @benlumia007 |
is not about the output of docker-compose, is when i type the following docker-compose up -d and press enter, it just delays for 5 - 10 seconds before it shows restarting or stopping |
let me do some testing, i'll comment later , it just could be my eyes are deceiving me lol |
Are you using https://github.com/docker/compose/blob/master/contrib/completion/bash/docker-compose for command line completion ? |
same problem, macos catalina (10.15 19A583), docker 2.1.0.3 (38240), docker-compose 1.24.1 |
Can you post the config of your compose file (without any sensitive data of course) |
|
it was pretty good, to begin with when using macOS Mojave, it runs fine, then Catalina just delays a few seconds. I don't think the issue is how it is config, I think its just the docker itself may not be tested fully under macOS Catalina |
I am experiencing the same issue. I didn't see anything coming from Interestingly, One clue is that whenever I SIGHUP Compose, I get errors that seem to be coming from PyInstaller. This makes me think that running Compose directly from within Python would be much faster and that the issue is with PyInstaller doing...things. |
I was able to work around this by installing $: pip install docker-compose This should set your default Compose to the Python one, but double-check just to make sure: $: file $(which docker-compose) # should NOT be a Mach-O executable |
yeah but it stil doesn't solve the problem whom is using the compiled version. I'll try that too. but this should be a bug for catalina. |
I think it's a PyInstaller bug as well :( |
Running into same issue.
Running
Then I installed docker-compose using pip3 (
Of course other subcommands are slow too, I thought using I've tried turning off network, also tried popular /etc/hosts fix from #3419 (comment) - no success in any case. |
I have a same issue running on macOS Cataina. If i run the docker-compose version, this take some time, but works, like example below: If I run under a proxy, the commands doesn't work. It's freeze (this image below it's a animated GIF, not a static image.... i wait for 30 seconds before CTRL+C... watch it...) I try run the same commands, under proxy, on macOS Mojave and it's works fine... |
I was able to reproduce this issue by updating my own OSX machine to Catalina. I've requested help on the PyInstaller mailing list to diagnose this issue. Internally tracked as https://docker.atlassian.net/browse/COMPOSE-96 |
@diogocnunes: what software do you use the screen capture. |
@ndeloof How did you see those requests? I didn't see anything like that when I did a |
I use Kap (https://getkap.co/) |
Adding https://api.apple-cloudkit.com to /etc/hosts, pointing to localhost, under proxy, docker-compose is working again ... I don't know what the real impact of this, but it's one less problem right now :) |
I used charles proxy I reported this issue on https://groups.google.com/forum/#!msg/pyinstaller/2MvcMaDFXyo/GhpVfaJJCQAJ and was able to reproduce using a minimalist "print hello" python application. Hope this will help maintainers to understand the root cause and propose a fix. |
When I run the following command, under our company's VPN, I notice the following behavior:
This goes on for some time until it finally connects
This slowdown seems to happen in regards to the following command: https://docs.docker.com/engine/api/v1.38/#operation/NetworkConnect Not sure if this is related but I wanted to call this out in case this helps anyone. |
@diogocnunes |
Yes. I use Catalina. Did you select the recording area before you started? |
Maybe this help someone else: Homebrew/homebrew-core#45687 (comment) |
works for me, thanks. |
5.8 seconds to do
|
@benlumia007 (or anyone with privs to do so) could you please edit the title to be more descriptive? Something like "docker-compose super slow on macOS Catalina" - thanks! |
@benlumia007 I have done added My /etc/hosts:
|
I have downloaded compose binary 1.25.1-rc1, which should include the potential fix from #7010 and it still runs slow:
Latest version installed using
|
@wodCZ fix is imlemented in the docker-compose-Darwin-x86_64.tgz "folder-style" installation, the single binary is kept for backward compatibility and pre-catalina users who don't need this fix. |
This reduced waiting time from 18s to 2s for me. Thanks for sharing! |
@zeshan77 can you give doker-compose 1.25 tar.gz release a try ? |
@ndeloof the
the version installed using pip still seems to be faster though:
|
Can you elaborate on "folder-style" installation? How do I do that? Running the executable in that archive is same slow (20+ second for me). |
pyinstaller used by docker-compose to bake a binary executable can both create a single-file binary, or a folder with binary + all libraries. so, unpacking the tar.gz and running |
@carlosonunez I installed with pip, but no executable found anywhere, what did I miss please? |
@Yelfive As mentioned by @ndeloof in #6956 (comment) we now release in two flavors for macOS. Please refer to the releases page and get the |
@ulyssessouza Thx for your reply, finally I got it to work. I previously tried all versions of the binary release, and missed the |
We have solved the problem by installing docker-compose as a container.
|
when i do docker-compose up -d, it takes a while to start the process, same when i do docker-compose restart.
in other words, there's a delay of few seconds before it begins to restart containers or stopping containers.
The text was updated successfully, but these errors were encountered: