Difference between revisions of "Version 3 resouces"

From wikieduonline
Jump to navigation Jump to search
(Created page with "Reference: https://docs.docker.com/compose/compose-file/#resources <pre> version: "3.7" services: redis: image: redis:alpine deploy: resources: limits...")
 
 
Line 25: Line 25:
 
==See also==
 
==See also==
 
*{{Docker}}
 
*{{Docker}}
*{{Devops}}
+
 
  
 
[[Category:Docker]]
 
[[Category:Docker]]
 
[[Category:Containers]]
 
[[Category:Containers]]

Latest revision as of 07:42, 8 January 2020

Reference: https://docs.docker.com/compose/compose-file/#resources

version: "3.7"
services:
  redis:
    image: redis:alpine
    deploy:
      resources:
        limits:
          cpus: '0.50'
          memory: 50M
        reservations:
          cpus: '0.25'
          memory: 20M


Activities[edit]

  1. Migrate your docker compose files from v2 to v3 using new version resource definition.
  2. Learn about differences between JVM memory limitation capabilities and docker options.
  3. Learn about Linux cgroups
  4. Read about Java and Memory Limits in Containers: https://dzone.com/articles/java-and-memory-limits-in-containers-lxc-docker-an

See also[edit]

Advertising: