Skip to content

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

Merged
dataroaring merged 1 commit into
branch-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 into
branch-3.0from
auto-pick-43040-branch-3.0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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
Copy Markdown
ContributorAuthor

run buildall

@doris-robot

Copy link
Copy Markdown

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.

@yujun777yujun777 closed this Nov 7, 2024
@yujun777yujun777 reopened this Nov 7, 2024
@dataroaring

Copy link
Copy Markdown
Contributor

run buildall

@yujun777

Copy link
Copy Markdown
Contributor

run external

@dataroaring
dataroaring merged commit 40c9729 into branch-3.0Nov 7, 2024
@dataroaring
dataroaring deleted the auto-pick-43040-branch-3.0 branch December 27, 2024 07:14
Sign up for freeto 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

@doris-robot@dataroaring@yujun777