Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker run --privileged #8827

Merged
merged 1 commit into from
Mar 15, 2022
Merged

Fix docker run --privileged #8827

merged 1 commit into from
Mar 15, 2022

Conversation

Furisto
Copy link
Member

@Furisto Furisto commented Mar 15, 2022

Description

Allow use of the privileged flag with docker. Previously this would cause an error. The fix is to ensure that the latest version of runc is installed.

Related Issue(s)

Fixes #2459

How to test

  • docker run --privileged -it busybox sh
    --> No error should be happening

Release Notes

Allow use of the --privileged flag with docker.

@Furisto Furisto requested a review from a team March 15, 2022 14:37
@github-actions github-actions bot added the team: workspace Issue belongs to the Workspace team label Mar 15, 2022
Copy link
Contributor

@utam0k utam0k left a comment

Choose a reason for hiding this comment

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

So far, we were using an old runc(i.e., runc installed by image) and it didn't work.

@roboquat roboquat merged commit 892b073 into main Mar 15, 2022
@roboquat roboquat deleted the fo/privileged-docker branch March 15, 2022 22:56
@@ -414,11 +414,6 @@ func installUidMap() error {
}

func installRunc() error {
_, exists := os.LookupEnv(DaemonArgs)
Copy link
Contributor

Choose a reason for hiding this comment

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

@Furisto I love when small code changes result in gains like this. Well done!

@roboquat roboquat added deployed: workspace Workspace team change is running in production deployed Change is completely running in production labels Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: workspace Workspace team change is running in production deployed Change is completely running in production release-note size/XS team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[docker] docker run --privileged does not work
4 participants