-
Notifications
You must be signed in to change notification settings - Fork 116
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 build hangs #2499
Comments
If I do docker build -t nginx -< Dockerfile It just builds without any problem |
Solved it, I got to the source of the problem, in practice the difference between my docker build command and the one triggered by docker-compose was that docker-compose was sending the whole content of the current folder as a build context, moving only the files needed during the build in a subfolder and keeping the mounted volumes/project files somewhere else made things normal again |
using dockerignore to ignore node_modules solved my problem |
|
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
docker-compose build not hanging
Actual behavior
docker-compose build hangs
Information
ID 871665AF-0A25-4D6B-A826-BF5FFE5BECBA
I also tried to add
to /etc/hosts
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: