docker set mongo memory

class:Docker views:105 Author:liufan008
Command
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
Explanation
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
046ff0b2360d3b254b6eacbaee4e67adc180b563385e1a758961a2417483596b

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