5861a0db22
Older API clients did not use a pointer for `PidsLimit`, so API requests would always send `0`, resulting in any previous value to be reset after an update: Before this patch: (using a 17.06 Docker CLI): ```bash docker run -dit --name test --pids-limit=16 busybox docker container inspect --format '{{json .HostConfig.PidsLimit}}' test 16 docker container update --memory=100M --memory-swap=200M test docker container inspect --format '{{json .HostConfig.PidsLimit}}' test 0 docker container exec test cat /sys/fs/cgroup/pids/pids.max max ``` With this patch applied: (using a 17.06 Docker CLI): ```bash docker run -dit --name test --pids-limit=16 busybox docker container inspect --format '{{json .HostConfig.PidsLimit}}' test 16 docker container update --memory=100M --memory-swap=200M test docker container inspect --format '{{json .HostConfig.PidsLimit}}' test 16 docker container exec test cat /sys/fs/cgroup/pids/pids.max 16 ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
container_test.go | ||
copy_test.go | ||
create_test.go | ||
daemon_linux_test.go | ||
diff_test.go | ||
exec_test.go | ||
export_test.go | ||
health_test.go | ||
inspect_test.go | ||
ipcmode_linux_test.go | ||
kill_test.go | ||
links_linux_test.go | ||
logs_test.go | ||
main_test.go | ||
mounts_linux_test.go | ||
nat_test.go | ||
pause_test.go | ||
ps_test.go | ||
remove_test.go | ||
rename_test.go | ||
resize_test.go | ||
restart_test.go | ||
run_linux_test.go | ||
stats_test.go | ||
stop_linux_test.go | ||
stop_test.go | ||
stop_windows_test.go | ||
update_linux_test.go | ||
update_test.go | ||
wait_test.go |