For previous versions of Docker, `--rm` was handled client side, as such there was no support in the daemon for it. Now it is handled daemon side, but we still need to handle the case of a newer client talking to an older daemon. Falls back to client-side removal when the daemon does not support it. Signed-off-by: Brian Goff <cpuguy83@gmail.com> Upstream-commit: f4bb8c51de3a52bdbc3c3e7be426e6bb90feb421 Component: engine