From 3cb635cce0c146aa681981cc891b99358903474f Mon Sep 17 00:00:00 2001 From: Jim Schubert Date: Tue, 13 Oct 2020 21:27:13 -0400 Subject: [PATCH] Add --rm and latest tag to container example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 677138b34..c0374b6c3 100644 --- a/README.md +++ b/README.md @@ -77,9 +77,9 @@ In this example the `$(pwd)/core/src/test/resources` directory is mounted in the in readonly mode (`ro`). ```bash -docker run -t \ +docker run --rm -t \ -v $(pwd)/core/src/test/resources:/specs:ro \ - openapitools/openapi-diff /specs/path_1.yaml /specs/path_2.yaml + openapitools/openapi-diff:latest /specs/path_1.yaml /specs/path_2.yaml ``` The remote name `openapitools/openapi-diff` can be replaced with `local-openapi-diff` or the name you gave to your local image.