From 516178ad8e59b437a52e67d5b0d5fcd23db9c19b Mon Sep 17 00:00:00 2001 From: Nick Janetakis Date: Fri, 28 Mar 2025 11:43:20 -0400 Subject: [PATCH 1/2] Add user flag to set UID / GID --- docs/installation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index c8df38ee16..ca3554d77e 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -91,11 +91,11 @@ On **Docker**, it is published as `ghcr.io/astral-sh/ruff`, tagged for each rele the latest release. ```console -$ docker run -v .:/io --rm ghcr.io/astral-sh/ruff check -$ docker run -v .:/io --rm ghcr.io/astral-sh/ruff:0.3.0 check +$ docker run -v .:/io -u "$(id -u):$(id -g)" --rm ghcr.io/astral-sh/ruff check +$ docker run -v .:/io -u "$(id -u):$(id -g)" --rm ghcr.io/astral-sh/ruff:0.3.0 check $ # Or, for Podman on SELinux. -$ docker run -v .:/io:Z --rm ghcr.io/astral-sh/ruff check +$ docker run -v .:/io:Z -u "$(id -u):$(id -g)" --rm ghcr.io/astral-sh/ruff check ``` [![Packaging status](https://repology.org/badge/vertical-allrepos/ruff-python-linter.svg?exclude_unsupported=1)](https://repology.org/project/ruff-python-linter/versions) From 5b81a03638b08b2da402c814c718400f8e3fe002 Mon Sep 17 00:00:00 2001 From: Nick Janetakis Date: Fri, 28 Mar 2025 11:43:46 -0400 Subject: [PATCH 2/2] Reference more up to date version --- docs/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation.md b/docs/installation.md index ca3554d77e..abe6092041 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -92,7 +92,7 @@ the latest release. ```console $ docker run -v .:/io -u "$(id -u):$(id -g)" --rm ghcr.io/astral-sh/ruff check -$ docker run -v .:/io -u "$(id -u):$(id -g)" --rm ghcr.io/astral-sh/ruff:0.3.0 check +$ docker run -v .:/io -u "$(id -u):$(id -g)" --rm ghcr.io/astral-sh/ruff:0.11.2 check $ # Or, for Podman on SELinux. $ docker run -v .:/io:Z -u "$(id -u):$(id -g)" --rm ghcr.io/astral-sh/ruff check