<commit_before><!--[metadata]>
+++
title = "update"
description = "The update command description and usage"
keywords = ["resources, update, dynamically"]
[menu.main]
parent = "smn_cli"
+++
<![end-metadata]-->

## update

    Usage: docker update [OPTIONS] CONTAINER [CONTAINER...]

    Updates container resource limits

      --help=false               Print usage
      --blkio-weight=0           Block IO (relative weight), between 10 and 1000
      --cpu-shares=0             CPU shares (relative weight)
      --cpu-period=0             Limit the CPU CFS (Completely Fair Scheduler) period
      --cpu-quota=0              Limit the CPU CFS (Completely Fair Scheduler) quota
      --cpuset-cpus=""           CPUs in which to allow execution (0-3, 0,1)
      --cpuset-mems=""           Memory nodes (MEMs) in which to allow execution (0-3, 0,1)
      -m, --memory=""            Memory limit
      --memory-reservation=""    Memory soft limit
      --memory-swap=""           Total memory (memory + swap), '-1' to disable swap
      --kernel-memory=""         Kernel memory limit: container must be stopped

The `docker update` command dynamically updates container resources.  Use this
command to prevent containers from consuming too many resources from their
Docker host.  With a single command, you can place limits on a single
container or on many. To specify more than one container, provide<commit_msg>Fix comment about swap limit of docker update<commit_after><!--[metadata]>
+++
title = "update"
description = "The update command description and usage"
keywords = ["resources, update, dynamically"]
[menu.main]
parent = "smn_cli"
+++
<![end-metadata]-->

## update

    Usage: docker update [OPTIONS] CONTAINER [CONTAINER...]

    Updates container resource limits

      --help=false               Print usage
      --blkio-weight=0           Block IO (relative weight), between 10 and 1000
      --cpu-shares=0             CPU shares (relative weight)
      --cpu-period=0             Limit the CPU CFS (Completely Fair Scheduler) period
      --cpu-quota=0              Limit the CPU CFS (Completely Fair Scheduler) quota
      --cpuset-cpus=""           CPUs in which to allow execution (0-3, 0,1)
      --cpuset-mems=""           Memory nodes (MEMs) in which to allow execution (0-3, 0,1)
      -m, --memory=""            Memory limit
      --memory-reservation=""    Memory soft limit
      --memory-swap=""           A positive integer equal to memory plus swap. Specify -1 to enable unlimited swap
      --kernel-memory=""         Kernel memory limit: container must be stopped

The `docker update` command dynamically updates container resources.  Use this
command to prevent containers from consuming too many resources from their
Docker host.  With a single command, you can place limits on a single
container or on many. To specify more than one container, provide
{'fraction_non_alphanumeric': 0.09865005192107996, 'fraction_numerical': 0.013153340256143994, 'mean_word_length': 2.533007334963325, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4921491', 'n_tokens_mistral': 796, 'n_tokens_neox': 745, 'n_words': 320}