mirror of https://github.com/astral-sh/ruff
Add user flag to set UID / GID
This commit is contained in:
parent
aca6254e82
commit
516178ad8e
|
|
@ -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
|
||||
```
|
||||
|
||||
[](https://repology.org/project/ruff-python-linter/versions)
|
||||
|
|
|
|||
Loading…
Reference in New Issue