Skip to content

branch-3.0: [feature](doris compose) run docker as host user#43091

Merged
dataroaring merged 1 commit intobranch-3.0from
auto-pick-43040-branch-3.0
Nov 7, 2024
Merged

branch-3.0: [feature](doris compose) run docker as host user#43091
dataroaring merged 1 commit intobranch-3.0from
auto-pick-43040-branch-3.0

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Nov 1, 2024

PR Body: Our workmates run doris compose on the same dev machine. Sometimes some docker doris_be consume high cpu. We want to find out it belongs to who. But if show processes with command 'ps -elf' on host machine, we only find out that its owner is root.
What a pitty. So we let doris compose docker run as host user. Then use command 'ps -elf' can known who it belongs to.

To achive this goal, we pass host user and uid into docker container, and let container add a new user the same with it, then run command with this new account.

If user still want to run as root in container, they need to pass options '--root' when creating a new doris compose cluster.

# run as root in container
python doris-compose.py  up   --root ...

#run as host user in container
python doris-compose.py up ...

Cherry-picked from #43040

Our workmates run doris compose on the same dev machine. Sometimes some
docker doris_be consume high cpu. We want to find out it belongs to who.
But if show processes with command 'ps -elf' on host machine, we only
find out that its owner is root.
What a pitty. So we let doris compose docker run as host user. Then use
command 'ps -elf' can known who it belongs to.

To achive this goal, we pass host user and uid into docker container,
and let container add a new user the same with it, then run command with
this new account.

If user still want to run as root in container, they need to pass
options '--root' when creating a new doris compose cluster.

```
# run as root in container
python doris-compose.py  up   --root ...

#run as host user in container
python doris-compose.py up ...
```
@github-actions
Copy link
Contributor Author

github-actions bot commented Nov 1, 2024

run buildall

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@yujun777 yujun777 closed this Nov 7, 2024
@yujun777 yujun777 reopened this Nov 7, 2024
@dataroaring
Copy link
Contributor

run buildall

@yujun777
Copy link
Contributor

yujun777 commented Nov 7, 2024

run external

@dataroaring dataroaring merged commit 40c9729 into branch-3.0 Nov 7, 2024
@dataroaring dataroaring deleted the auto-pick-43040-branch-3.0 branch December 27, 2024 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants