@@ -7,11 +7,18 @@ Lima supports automatic port-forwarding of localhost ports from guest to host.
7
7
8
8
## Port forwarding types
9
9
10
+ Lima supports two port forwarders: SSH and GRPC.
11
+
12
+ The default port forwarder is SSH.
13
+
14
+ The default was once changed to GRPC in Lima v1.0, but it was reverted to SSH in v1.0.1 due to stability reasons.
15
+ In future, it is expected that GRPC will take over the default position again.
16
+
10
17
### Using SSH
11
18
12
- SSH based port forwarding is the default and current model that is supported in Lima prior to v1.0 .
19
+ SSH based port forwarding is the default and current model that is supported in Lima.
13
20
14
- To use SSH forwarding use the below command
21
+ To explicitly use SSH forwarding use the below command
15
22
16
23
``` bash
17
24
LIMA_SSH_PORT_FORWARDER=true limactl start
@@ -22,18 +29,18 @@ LIMA_SSH_PORT_FORWARDER=true limactl start
22
29
- Doesn't support UDP based port forwarding
23
30
- Spans child process on host for running SSH master.
24
31
25
- ### Using GRPC (Default since Lima v1.0)
32
+ ### Using GRPC
26
33
27
34
| ⚡ Requirement | Lima >= 1.0 |
28
35
| ---------------| -------------|
29
36
30
37
In this model, lima uses existing GRPC communication (Host <-> Guest) to tunnel port forwarding requests.
31
38
For each port forwarding request, a GRPC tunnel is created and this will be used for transmitting data
32
39
33
- To disable this feature and use SSH forwarding use the following environment variable
40
+ To enable this feature, set ` LIMA_SSH_PORT_FORWARDER ` to ` false ` :
34
41
35
42
``` bash
36
- LIMA_SSH_PORT_FORWARDER=true limactl start
43
+ LIMA_SSH_PORT_FORWARDER=false limactl start
37
44
```
38
45
39
46
#### Advantages
0 commit comments