Home > other >  How to modify the docker container allocated memory
How to modify the docker container allocated memory

Time:01-28

All bosses:

I was installed in the Windows server 2019 docker then in centos: 7.6.1810 mirror based on a docker container
After entering the docker container with the top command found memory only 1 g. I want to build a container operation spring of cloud services, but because of a micro service occupies 300 m
Won't run other micro service, host memory is 32 gb, why container points only 1 g, how to adopt launch container allocation more memory,

Thank you,

CodePudding user response:

I installed the docker version is docker - 19-03-05
Use the following commands to modify memory doesn't work
Start the container docker run - dit -m 5 g
  • Related