[setup-container] Allow ptrace for sonic-mgmt container#22232
Merged
wangxin merged 1 commit intosonic-net:masterfrom Feb 24, 2026
Merged
[setup-container] Allow ptrace for sonic-mgmt container#22232wangxin merged 1 commit intosonic-net:masterfrom
wangxin merged 1 commit intosonic-net:masterfrom
Conversation
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the sonic-mgmt container startup to grant the SYS_PTRACE capability so that debuggers can attach to processes inside the container.
Changes:
- Modify the
docker runinvocation instart_local_containerto include--cap-add=SYS_PTRACEwhen creating thesonic-mgmtcontainer.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
wangxin
approved these changes
Feb 24, 2026
aronovic
pushed a commit
to aronovic/sonic-mgmt
that referenced
this pull request
Mar 3, 2026
) What is the motivation for this PR? Add SYS_PTRACE when starting sonic-mgmt docker to allow debuggers to trace. Signed-off-by: Longxiang Lyu lolv@microsoft.com How did you do it? Add the flag to docker run. Signed-off-by: Longxiang Lyu <lolv@microsoft.com> Signed-off-by: Mihut Aronovici <aronovic@cisco.com>
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
…atically (sonic-net#22232) #### Why I did it src/sonic-utilities ``` * a6fcf564 - (HEAD -> 202411, origin/202411) [show][interfaces] Add proposal for show interfaces flap (sonic-net#3627) (sonic-net#3823) (8 hours ago) [vdahiya12] ``` #### How I did it #### How to verify it #### Description for the changelog
abhishek-nexthop
pushed a commit
to nexthop-ai/sonic-mgmt
that referenced
this pull request
Mar 17, 2026
) What is the motivation for this PR? Add SYS_PTRACE when starting sonic-mgmt docker to allow debuggers to trace. Signed-off-by: Longxiang Lyu lolv@microsoft.com How did you do it? Add the flag to docker run. Signed-off-by: Longxiang Lyu <lolv@microsoft.com> Signed-off-by: Abhishek <abhishek@nexthop.ai>
vrajeshe
pushed a commit
to vrajeshe/sonic-mgmt
that referenced
this pull request
Mar 23, 2026
) What is the motivation for this PR? Add SYS_PTRACE when starting sonic-mgmt docker to allow debuggers to trace. Signed-off-by: Longxiang Lyu lolv@microsoft.com How did you do it? Add the flag to docker run. Signed-off-by: Longxiang Lyu <lolv@microsoft.com> Signed-off-by: Venkata Gouri Rajesh Etla <vrajeshe@cisco.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Add
SYS_PTRACEwhen startingsonic-mgmtdocker to allow debuggers to trace.Signed-off-by: Longxiang Lyu lolv@microsoft.com
How did you do it?
Add the flag to docker run.
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation