diff --git a/metadata-ingestion/src/datahub/cli/docker_cli.py b/metadata-ingestion/src/datahub/cli/docker_cli.py index cb9d8a89d03f74..7bbd7577b5880a 100644 --- a/metadata-ingestion/src/datahub/cli/docker_cli.py +++ b/metadata-ingestion/src/datahub/cli/docker_cli.py @@ -71,15 +71,8 @@ class Architectures(Enum): @functools.lru_cache() def _docker_subprocess_env() -> Dict[str, str]: - try: - DOCKER_COMPOSE_PLATFORM: Optional[str] = ( - subprocess.run(["uname", "-m"], stdout=subprocess.PIPE) - .stdout.decode("utf-8") - .rstrip() - ) - except FileNotFoundError: - # On Windows, uname is not available. - DOCKER_COMPOSE_PLATFORM = None + # platform.machine() is equivalent to `uname -m`, as per https://stackoverflow.com/a/45124927/5004662 + DOCKER_COMPOSE_PLATFORM: str = "linux/" + platform.machine() env = { **os.environ,