Version 3 resouces
Jump to navigation
Jump to search
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
- Migrate your docker compose files from v2 to v3 using new version resource definition.
- Learn about differences between JVM memory limitation capabilities and docker options.
- Learn about Linux cgroups
- Read about Java and Memory Limits in Containers: https://dzone.com/articles/java-and-memory-limits-in-containers-lxc-docker-an
See also
- Docker:
docker-compose
, Docker Desktop, Docker Scout, Docker Swarm, Docker Volumes, Docker images management, docker network,docker inspect
,docker volume inspect
,Dockerfile
, Docker Engine release notes,docker kill
,moby
, Docker-in-Docker,docker context
,buildx
,docker tag
,docker system prune
, Docker Hub,hub-tool, /etc/docker/daemon.json
,hostconfig.json
, dockerd, logs, Docker logging, Backup,docker service
,depends on
,--dns, --filter
,--mount
,docker login
,docker build
,apt remove docker.io
,.dockerignore
, docker context ls |docker-machine, .docker/
, PWD,$HOME/.docker/config.json
, Docker ID,--env-file, docker --help
Advertising: