dongjoon-hyun opened a new pull request, #57171: URL: https://github.com/apache/spark/pull/57171
### What changes were proposed in this pull request? This PR aims to add the `--rm` flag to the `docker run` invocation in `dev/create-release/do-release-docker.sh` so that the release container is removed automatically when it exits. ### Why are the changes needed? The container is started with `--env-file`, which injects secrets such as `ASF_PASSWORD`, `GPG_PASSPHRASE`, `PYPI_API_TOKEN`, and `ASF_NEXUS_TOKEN`. Without `--rm`, the stopped container remains on the host and the secrets can be read in plain text via `docker inspect`. This is safe because nothing references the container after it exits, and all outputs are written to the host via the `$WORKDIR` volume mount. ### Does this PR introduce _any_ user-facing change? No. This is a release script which is used by release managers. ### How was this patch tested? Manual review. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Fable 5 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
