Yikun commented on PR #43: URL: https://github.com/apache/spark-docker/pull/43#issuecomment-1563738824
1. `spark` as default USER * Run directly: `spark` user will be used when enter docker image ``` $ docker run -ti spark-test bash spark@afa78af05cf8:/opt/spark/work-dir$ ``` * Base image: If users want to build image based on base image, users will have to switch `root` to install extra apt pkg and then switch back to `spark`. * In previous docker (v3.3.0), `docker run -ti apache/spark:v3.3.0 bash`, `185` user will be used. * K8s: we pin to `spark` user. 2. `root` as default USER * Run directly: `root` user will be used when enter docker image ``` $ docker run -ti spark-test bash root@afa78af05cf8:/opt/spark/work-dir$ ``` * Base image: If users want to build image based on base image, they can install directly * K8s: we pin to `spark` user. So, looks like root user is more convenient (but bring some behavior change compare to previous `apache/spark` image). Wait for feedback from DOI. -- 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]
