You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/crictl.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -47,23 +47,23 @@ Subcommands includes:
47
47
-`logs`: Fetch the logs of a container
48
48
-`help`: Shows a list of commands or help for one command
49
49
50
-
crictl connects to `/var/run/dockershim.sock` by default. For other runtimes, the endpoint can be set in three ways:
50
+
crictl connects to `unix:///var/run/dockershim.sock` by default. For other runtimes, the endpoint can be set in three ways:
51
51
52
52
- By setting flags `--runtime-endpoint` and `--image-endpoint`
53
53
- By setting environment variables `CRI_RUNTIME_ENDPOINT` and `CRI_IMAGE_ENDPOINT`
54
54
- By setting the endpoint in the config file `--config=/etc/crictl.yaml`
55
55
56
56
```
57
57
# cat /etc/crictl.yaml
58
-
runtime-endpoint: /var/run/dockershim.sock
59
-
image-endpoint: /var/run/dockershim.sock
58
+
runtime-endpoint: unix:///var/run/dockershim.sock
59
+
image-endpoint: unix:///var/run/dockershim.sock
60
60
timeout: 10
61
61
debug: true
62
62
```
63
63
64
64
## Additional options
65
65
66
-
-`--runtime-endpoint`, `-r`: CRI server runtime endpoint (default: "/var/run/dockershim.sock").The default server is dockershim. If we want to debug other CRI server such as frakti, we can add flag `--runtime-endpoint=/var/run/frakti.sock`
66
+
-`--runtime-endpoint`, `-r`: CRI server runtime endpoint (default: "unix:///var/run/dockershim.sock").The default server is dockershim. If we want to debug other CRI server such as frakti, we can add flag `--runtime-endpoint=/var/run/frakti.sock`
67
67
-`--image-endpoint`, `-i`: CRI server image endpoint, default same as runtime endpoint.
68
68
-`--timeout`, `-t`: Timeout of connecting to server (default: 10s)
Copy file name to clipboardexpand all lines: pkg/framework/test_context.go
+2-2
Original file line number
Diff line number
Diff line change
@@ -55,9 +55,9 @@ func RegisterFlags() {
55
55
56
56
flag.StringVar(&TestContext.ReportPrefix, "report-prefix", "", "Optional prefix for JUnit XML reports. Default is empty, which doesn't prepend anything to the default name.")
57
57
flag.StringVar(&TestContext.ReportDir, "report-dir", "", "Path to the directory where the JUnit XML reports should be saved. Default is empty, which doesn't generate these reports.")
58
-
flag.StringVar(&TestContext.ImageServiceAddr, "image-service-address", "/var/run/dockershim.sock", "Image service socket for client to connect.")
58
+
flag.StringVar(&TestContext.ImageServiceAddr, "image-service-address", "unix:///var/run/dockershim.sock", "Image service socket for client to connect.")
59
59
flag.DurationVar(&TestContext.ImageServiceTimeout, "image-service-timeout", 300*time.Second, "Timeout when trying to connect to image service.")
60
-
flag.StringVar(&TestContext.RuntimeServiceAddr, "runtime-service-address", "/var/run/dockershim.sock", "Runtime service socket for client to connect..")
60
+
flag.StringVar(&TestContext.RuntimeServiceAddr, "runtime-service-address", "unix:///var/run/dockershim.sock", "Runtime service socket for client to connect..")
61
61
flag.DurationVar(&TestContext.RuntimeServiceTimeout, "runtime-service-timeout", 300*time.Second, "Timeout when trying to connect to a runtime service.")
62
62
flag.IntVar(&TestContext.Number, "number", 5, "Number of PodSandbox/container in listing benchmark test.")
0 commit comments