how to change docker configuration about "--cpuset-cpus" on a running container
时间: 2024-03-17 17:44:04 浏览: 100
You can use the `docker update` command to change the configuration of a running container, including the `--cpuset-cpus` parameter.
First, find the container ID of the running container by running `docker ps`. Then, use the `docker update` command with the `--cpuset-cpus` parameter followed by the new CPU set you want to assign to the container. For example, if you want to assign CPUs 0 and 1 to the container with ID `abc123`, you would run:
```
docker update --cpuset-cpus="0,1" abc123
```
This will update the configuration of the running container to use the new CPU set.
阅读全文