Docker build from Dockerfile with more memory Docker build from Dockerfile with more memory docker docker

Docker build from Dockerfile with more memory


It is not something about order. The Dockerfile must be specified with -f

docker build -f Dockerfile.cpu -t ibot-cpu -m 4g .

However, take into account that by default docker does not limit the container memory. It can take the whole free memory.

As I can see that you are on OSX, which runs docker over a Linux VM. Configure the max memory clicking the whale icon in the task bar. It's 2GB by default.

For further information please see my other answer:How to assign more memory to docker container