ee8de7da262bdc48098990db8e736c43728de922
Function shouldRestart() checks the restart policy and records the debug info and there should be two arguments in the log.Debugf(). Prior to the this patch, the logs were something like this: - client: $ docker run --restart=on-failure:3 ubuntu /bin/sh -c 'exit 1' - daemon: INFO[0168] ... DEBU[0168] stopping restart of container %!s(int=3) because maximum failure could of %!d(MISSING) has been reached INFO[0086] ... Btw, fix a spelling error in the same file: - cotnainer -> container ---------------------------------------- Signed-off-by: Hu Keping <hukeping@huawei.com> Upstream-commit: af053ccf6b3179978e087defd0062664152697ef Component: engine
Description
No description provided
Languages
Go
92%
Shell
5.5%
Dockerfile
1.1%
Go-Checksums
0.9%
Makefile
0.3%
Other
0.2%