For when Docker acts up on you (macOS):
- Restart docker
docker system prune
(the secret sauce)docker login -u _token -p "$(gcloud auth print-access-token)" https://eu.gcr.io
(authenticate if needed)docker-compose build --no-cache
If experiencing problems with npm modules or bower components:
rm -rf <path>/node_modules && rm -rf <path>/bower_components/ && docker-compose build --no-cache
<path>
stands for application's root path
If you know the name of the image you need to pull:
rm -rf <path>/node_modules && rm -rf <path>/bower_components/ && docker-compose build --no-cache --pull <image>
<image>
stands for the image that needs to be pulled. --pull <image>
is not necessary in most cases.