You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When attempting to update the CpusetCpus field value on a running container there does not appear to be a scenario in which you can actually set the field to an empty value. It looks like this logic is preventing me from being able to unset any values when performing the update.
Steps to reproduce the issue:
Create a container of your choice, and set the --cpuset-cpus (CpusetCpus) field to some non-empty value, lets use 0,1.
Using either the ContainerUpdate command from the Go client, or the docker update CLI command, attempt to set the CpusetCpus field to an empty string value (e.g. no limitation).
No changes are applied, even though an empty string is provided.
Describe the results you received:
vagrant@wings:~$ docker update --cpuset-cpus "" 5e0b3372-e378-42f2-93a5-06faca2d42f0
5e0b3372-e378-42f2-93a5-06faca2d42f0
vagrant@wings:~$ docker inspect --format="{{.HostConfig.CpusetCpus}}" 5e0b3372-e378-42f2-93a5-06faca2d42f0
0,1
vagrant@wings:~$ docker update --cpuset-cpus 5e0b3372-e378-42f2-93a5-06faca2d42f0
"docker update" requires at least 1 argument.
See 'docker update --help'.
Usage: docker update [OPTIONS] CONTAINER [CONTAINER...]
Update configuration of one or more containers
vagrant@wings:~$ docker update --cpuset-cpus="" 5e0b3372-e378-42f2-93a5-06faca2d42f0
5e0b3372-e378-42f2-93a5-06faca2d42f0
vagrant@wings:~$ docker inspect --format="{{.HostConfig.CpusetCpus}}" 5e0b3372-e378-42f2-93a5-06faca2d42f0
0,1
The same thing occurs when using the Go client and passing through the following example code (this is truncated a bit for the sake of this report):
It also appears you cannot unset a memory reservation based on the highlighted logic in this report, but I can open a separate bug report if that would be more useful.
Description
When attempting to update the
CpusetCpus
field value on a running container there does not appear to be a scenario in which you can actually set the field to an empty value. It looks like this logic is preventing me from being able to unset any values when performing the update.Steps to reproduce the issue:
--cpuset-cpus
(CpusetCpus
) field to some non-empty value, lets use0,1
.ContainerUpdate
command from the Go client, or thedocker update
CLI command, attempt to set theCpusetCpus
field to an empty string value (e.g. no limitation).Describe the results you received:
The same thing occurs when using the Go client and passing through the following example code (this is truncated a bit for the sake of this report):
Describe the results you expected:
I expected that the
CpusetCpus
field would be blank for the container after updating it.Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Running in a VirtualBox environment on Ubuntu 20.
The text was updated successfully, but these errors were encountered: