Arquisoft / viade_es1c

Viade es1c
1 stars 4 forks source link

Error deploying in Docker using Docker Toolbox #118

Closed UO265308 closed 4 years ago

UO265308 commented 4 years ago

When executing: docker-compose up --force-recreate --build

The following error happens: docker1

UO265308 commented 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:

  1. docker-machine rm default
  2. docker-machine create -d virtualbox --virtualbox-cpu-count=2 --virtualbox-memory=4096 --virtualbox-disk-size=50000 default
  3. docker-machine stop
  4. exit
  5. open a new terminar and execute the docker-compose command
UO265308 commented 4 years ago

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/