How to assign more memory to docker container

后端 未结 3 725
不知归路
不知归路 2020-11-27 12:48

As the title reads, I\'m trying to assign more memory to my container. I\'m using an image from docker hub called \"aallam/tomcat-mysql\" in case that\'s relevant.

W

3条回答
  •  北荒
    北荒 (楼主)
    2020-11-27 13:09

    If you want to change the default container and you are using Virtualbox, you can do it via the commandline / CLI:

    docker-machine stop
    VBoxManage modifyvm default --cpus 2
    VBoxManage modifyvm default --memory 4096
    docker-machine start
    

提交回复
热议问题