Skip to content

Commit 1e45f78

Browse files
committed
examples/docker.yaml: recommend CLI context, not DOCKER_HOST env var
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 54b5b7f commit 1e45f78

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

examples/docker.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ portForwards:
6060
- guestSocket: "/run/user/{{.UID}}/docker.sock"
6161
hostSocket: "{{.Dir}}/sock/docker.sock"
6262
message: |
63-
To run `docker` on the host (assumes docker-cli is installed):
64-
$ export DOCKER_HOST=unix://{{.Dir}}/sock/docker.sock
65-
$ docker ...
63+
To run `docker` on the host (assumes docker-cli is installed), run the following commands:
64+
------
65+
docker context create lima --docker "host=unix://{{.Dir}}/sock/docker.sock"
66+
docker context use lima
67+
docker run hello-world
68+
------

0 commit comments

Comments
 (0)