docker set mongo memory

class:Docker views:105 Author:liufan008
docker run -d --name company-mongo -p 28018:27017 --restart=on-failure:3 -v /home/docker/mongo/db:/data/db --privileged=true mongo --wiredTigerCacheSizeGB 25
run : Start the container
-d : Run container in background and print container ID
--name : Set container name
-p : Publish a container's port(s) to the host
-v : Bind mount a volume
--privileged : Set container root permissions
mongo:4.2 : Image name/image ID
--wiredTigerCacheSizeGB :  Set the upper limit of mongo memory usage in GB

Operation result

This platform is gradually under construction, more development orders are gradually included, any questions or Suggestions can be Contact Us