diff --git a/README.md b/README.md index c26e18e96..b8c70a77a 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,11 @@ docker run -d -p 9000:9000 -p 9001:9001 -v $(pwd)/data:/data -v $(pwd)/logs:/log If you use [podman](https://github.com/containers/podman) instead of docker, you can install the RustFS with the below command ```bash -podman run -d -p 9000:9000 -p 9001:9001 -v $(pwd)/data:/data -v $(pwd)/logs:/logs rustfs/rustfs:latest +# Create data and logs directories +mkdir -p data logs + +# Run the container (podman will automatically set the folders ownership) +podman run -d -p 9000:9000 -p 9001:9001 -v $(pwd)/data:/data:Z,U -v $(pwd)/logs:/logs:Z,U rustfs/rustfs:latest ``` If you enable TLS with a bind-mounted certificate directory, prepare that mount the same way: