Skip to content
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

Improve Docker's speed #923

Closed
maestromac opened this issue Oct 15, 2018 · 11 comments
Closed

Improve Docker's speed #923

maestromac opened this issue Oct 15, 2018 · 11 comments
Labels
external contributors welcome contribution is welcome! good first issue good first issues for anyone new to programming and new to the project.

Comments

@maestromac
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Nope

Describe the solution you'd like
Currently, it takes about ~3 minutes to load up a homepage from a docker instance on macOS, that's a lot of time 😱. Docker-sync could to be the tool to resolve this issue.

Describe alternatives you've considered
Perhaps the culprit of our speed is our poor configuration.

Additional context
n/a

@benhalpern benhalpern added good first issue good first issues for anyone new to programming and new to the project. external contributors welcome contribution is welcome! labels Oct 15, 2018
@benhalpern
Copy link
Contributor

Anyone with docker knowledge wanting to give this a go is welcome to give it a try.

@gionaufal
Copy link

Just as a feedback, this really seems to be a macOS specific problem. On ubuntu the homepage loads in 3~4 seconds for the first time.

@maestromac
Copy link
Contributor Author

Thanks for that @gionaufal ! I had a feeling this was the case.

@j23schoen
Copy link

If it's a mac specific speed issue, this might help you out. docker-compose was very slow for me on a mac until I modified my /etc/hosts/ file as described in the comment I linked.

@maestromac
Copy link
Contributor Author

@j23schoen Thanks for that suggestion. I've tried that and it didn't seem to do anything ☹️. Does that solution work for you with our app?

@j23schoen
Copy link

@maestromac when I have a chance I'll clone it and give it a shot and let you know if it helps at all

@asfo
Copy link

asfo commented Oct 24, 2018

@gionaufal on windows loads fast too (5 seconds~ for the first time)

@snuderl
Copy link

snuderl commented Oct 27, 2018

The fix for this is very likely to mount the source volume using delegated option. This can just be added to docker-compose.yml

More info here https://docs.docker.com/docker-for-mac/osxfs-caching/

@crawlingcity
Copy link

The way we have our docker setup allows to run several projects at the same time in the same image and it's fast, as in <2 sec TTFB (same network, but external server serving the databases).

Maybe I'm missing something, but what are you trying to load? A dev.to clone?

Also, to be able to help further, can you share the configuration?

@maestromac
Copy link
Contributor Author

maestromac commented Nov 1, 2018

@crawlingcity We're simply trying to load localhost:3000. The configuration is in the repository here and here

@stale
Copy link

stale bot commented Jan 31, 2019

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue in 7 days. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If this issue still requires attention, please respond with a comment. Happy Coding!

@stale stale bot added the stale label Jan 31, 2019
@stale stale bot closed this as completed Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external contributors welcome contribution is welcome! good first issue good first issues for anyone new to programming and new to the project.
Projects
None yet
Development

No branches or pull requests

7 participants