Skip to content

Commit 8cae8db

Browse files
authored
Revert "sudoless for inspect cmd (#2862)" (#2875)
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.
1 parent e657930 commit 8cae8db

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cmd/inspect.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ func inspectCmd(o *Options) (*cobra.Command, error) {
3232
Long: "show details about a particular lab or all running labs\n" +
3333
"reference: https://containerlab.dev/cmd/inspect/",
3434
Aliases: []string{"ins", "i"},
35-
PreRunE: func(_ *cobra.Command, _ []string) error {
36-
return clabutils.CheckAndGetRootPrivs()
37-
},
3835
RunE: func(cobraCmd *cobra.Command, _ []string) error {
3936
return inspectFn(cobraCmd, o)
4037
},

0 commit comments

Comments
 (0)