Migrate docker rm tests to api tests Upstream-commit: da559d01d140978123c37f0f359c4aa5b022adb4 Component: engine