Closed UO265308 closed 4 years ago
After talking with @pglez82 , we've managed to resolve the problem. The "heap of memory" exception is due to the limited memory of the default Virtual Machine in which docker toolbox is running. The solution is to remove the default machine and create a new one with better characteristics.
We've found the information here: https://github.com/crops/docker-win-mac-docs/wiki/Windows-Instructions-(Docker-Toolbox)
The steps are:
docker-machine rm default
docker-machine create -d virtualbox --virtualbox-cpu-count=2 --virtualbox-memory=4096 --virtualbox-disk-size=50000 default
docker-machine stop
exit
The next problem when using Docker toolbox is that you can't use "localhost" as a url, you have to type the correct IP. You can find the value of the IP by running this command docker-machine ip default
.
Once you've done that, replace "localhost" with that IP. In my case, the app is deployed at http://192.168.99.102:3000/
When executing:
docker-compose up --force-recreate --build
The following error happens: