diff --git a/tools/cli_commands/erv2.py b/tools/cli_commands/erv2.py index b5f1c9e7a..812ae8c02 100644 --- a/tools/cli_commands/erv2.py +++ b/tools/cli_commands/erv2.py @@ -185,10 +185,10 @@ def build_cdktf(self, credentials: Path) -> None: "run", "--name", "erv2", - "--mount", - f"type=bind,source={input_file!s},target=/inputs/input.json", - "--mount", - f"type=bind,source={credentials!s},target=/credentials", + "-v", + f"{input_file!s}:/inputs/input.json:Z", + "-v", + f"{credentials!s}:/credentials:Z", "-e", "AWS_SHARED_CREDENTIALS_FILE=/credentials", "--entrypoint", @@ -236,10 +236,10 @@ def enter_shell(self, credentials: Path) -> None: "erv2-debug-shell", "--rm", "-it", - "--mount", - f"type=bind,source={input_file!s},target=/inputs/input.json", - "--mount", - f"type=bind,source={credentials!s},target=/credentials", + "-v", + f"{input_file!s}:/inputs/input.json:Z", + "-v", + f"{credentials!s}:/credentials:Z", "-e", "AWS_SHARED_CREDENTIALS_FILE=/credentials", "--entrypoint", @@ -269,10 +269,10 @@ def force_unlock(self, credentials: Path, lock_id: str) -> None: "--name", "erv2-unlock", "--rm", - "--mount", - f"type=bind,source={input_file!s},target=/inputs/input.json", - "--mount", - f"type=bind,source={credentials!s},target=/credentials", + "-v", + f"{input_file!s}:/inputs/input.json:Z", + "-v", + f"{credentials!s}:/credentials:Z", "-e", "AWS_SHARED_CREDENTIALS_FILE=/credentials", "--entrypoint",