You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "Yikun (via GitHub)" <gi...@apache.org> on 2023/05/26 02:39:59 UTC

[GitHub] [spark-docker] Yikun commented on pull request #43: [SPARK-43370] Switch spark user only when run driver and executor

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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org