mirror of
https://github.com/docker/docs.git
synced 2026-03-28 06:49:00 +07:00
This fix tries to fix the http panics caused by container deletion with empty names in #22210. The issue was because when an empty string was passed, `GetByName()` tried to access the first element of the name string without checking the length. A length check has been added. A test case for #22210 has been added. This fix fixes #22210. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
55 KiB
55 KiB