Skip to content

Conversation

@jcpvdm
Copy link
Contributor

@jcpvdm jcpvdm commented Oct 1, 2025

Add sudoless support for inspect command

Comment on lines +35 to +37
PreRunE: func(_ *cobra.Command, _ []string) error {
return clabutils.CheckAndGetRootPrivs()
},
Copy link
Member

Choose a reason for hiding this comment

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

@vista- looks good?

Copy link
Contributor

Choose a reason for hiding this comment

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

lgtm

@vista- vista- self-requested a review October 1, 2025 12:30
@hellt hellt merged commit 1771415 into srl-labs:main Oct 1, 2025
44 of 49 checks passed
jcpvdm added a commit to jcpvdm/containerlab that referenced this pull request Oct 6, 2025
hellt pushed a commit that referenced this pull request Oct 6, 2025
This reverts commit 1771415.

I have realized that it is intended (as per the doc) to not require root
for inspect command. My problem was that my user was not part of docker
group.
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