docker update

Update configuration of Docker containers. This command is not supported for Windows containers. More information: https://docs.docker.com/reference/cli/docker/container/update/.

docker update --restart={{always|no|on-failure|unless-stopped}} {{container_name}}

docker update --restart=on-failure:3 {{container_name}}

docker update --cpus {{count}} {{container_name}}

docker update --memory {{limit}}M {{container_name}}

docker update --pids-limit {{count}} {{container_name}}

docker update --memory-swap {{limit}}M {{container_name}}