For the best experience using Docker, we recommend following the guidelines outlined here.
Follow the official instructions to install Docker and Docker Compose:
Increase Docker resources
Because many of our Docker-based demos leverage a large number of pieces of infrastructure, we recommend running Docker with at least 2 CPUs and 8 GB of memory.
Open Docker for Mac’s Preferences window.
Move the CPUs slider to at least 2.
Move the Memory slider to at least 8.00 GB.
Click Apply & Restart.
Note that on Linux, Docker automatically shares memory with the host machines; as long as your host machine has more than 8 GB of memory, you shouldn’t run into issues.