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

feat: add privileged option to local_docker (#897) #898

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

clumsy
Copy link
Contributor

@clumsy clumsy commented Apr 26, 2024

Adding privileged option for local_docker so that the container can start in privileged mode, same way we can do this for aws_batch scheduler. Defaults to False, same as in aws_batch.

Test plan:
☑ unit test added
☑ tested locally:

docker inspect --format='{{.HostConfig.Privileged}}' <CONTAINER_ID>
true

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 26, 2024
@clumsy
Copy link
Contributor Author

clumsy commented Apr 26, 2024

For your consideration, @kiukchung

@clumsy
Copy link
Contributor Author

clumsy commented May 6, 2024

Any chance you can check this request, @d4l3k?

@clumsy
Copy link
Contributor Author

clumsy commented May 8, 2024

Any chance you can look at this one, @andywag?

Copy link
Contributor

@d4l3k d4l3k left a comment

Choose a reason for hiding this comment

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

LGTM

@d4l3k
Copy link
Contributor

d4l3k commented May 29, 2024

Also not sure why it's not giving me an option to run the full tests -- maybe need to bump the PR.

@clumsy sorry for the delay in reviews on this

@clumsy
Copy link
Contributor Author

clumsy commented May 29, 2024

No worries, @d4l3k. Should I force push an amended commit to trigger rebuild?

@clumsy clumsy force-pushed the feat/local_docker_privileged branch from bb7c6cb to ec8be03 Compare May 30, 2024 12:15
@clumsy
Copy link
Contributor Author

clumsy commented May 30, 2024

Addressed your comment, @d4l3k. Please let me know if further modifications are needed.

@d4l3k d4l3k merged commit 2ec3673 into pytorch:main Jun 5, 2024
22 checks passed
@clumsy clumsy deleted the feat/local_docker_privileged branch June 5, 2024 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants