I have deployed a container using the docker stack deploy
command.
The service gets deployed properly and also the contianer is running.
I have specified some resource reservation constaints as follows:
deploy:
mode: replicated
replicas: 1
resources:
reservations:
cpus: '0.25'
memory: 512M
restart_policy:
condition: on-failure
max_attempts: 3
But when I try to check the allocated memory and cpu resources, the docker inspect container_name
command shows 0 as their values
"Memory": 0,
"NanoCpus": 0,