Skip to content

ctr: add --user for task exec#5266

Merged
estesp merged 1 commit intocontainerd:masterfrom
Ace-Tang:ace
Mar 25, 2021
Merged

ctr: add --user for task exec#5266
estesp merged 1 commit intocontainerd:masterfrom
Ace-Tang:ace

Conversation

@Ace-Tang
Copy link
Copy Markdown
Contributor

@Ace-Tang Ace-Tang commented Mar 25, 2021

set user in exec container

$ ctr t exec --exec-id e1 --user admin container id
uid=500(admin) gid=500(admin) groups=500(admin)

Signed-off-by: chuangxue [email protected]
Signed-off-by: acetang [email protected]

@AkihiroSuda
Copy link
Copy Markdown
Member

Signed-off-by: chuangxue chenglong.lcl@alibaba-inc

Valid email address please

Copy link
Copy Markdown
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but sign needs to be fixed

@Ace-Tang
Copy link
Copy Markdown
Contributor Author

Sorry for not valid email address, and update commit

set user in exec container

$ ctr t exec --exec-id e1 --user admin container id
uid=500(admin) gid=500(admin) groups=500(admin)

Signed-off-by: chuangxue <[email protected]>
Signed-off-by: acetang <[email protected]>
Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@estesp
Copy link
Copy Markdown
Member

estesp commented Mar 25, 2021

Merging as the one CI failure is a test timeout

@estesp estesp merged commit f2d8403 into containerd:master Mar 25, 2021
@Ace-Tang Ace-Tang deleted the ace branch March 25, 2021 15:09
@Ace-Tang
Copy link
Copy Markdown
Contributor Author

image

@estesp Thanks, I am weird this test run 238s, and I check other pr, not found same test in the passed ci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants