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/book/src/developer/tilt.md
+64-2Lines changed: 64 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -485,8 +485,70 @@ syntax highlighting and auto-formatting. To enable it for Tiltfile a file associ
485
485
486
486
[Podman](https://podman.io) can be used instead of Docker by following these actions:
487
487
488
-
1. Enable the podman unix socket (eg. `systemctl --user enable --now podman.socket` on Fedora)
488
+
1. Enable the podman unix socket:
489
+
- on Linux/systemd: `systemctl --user enable --now podman.socket`
490
+
- on macOS: create a podman machine with `podman machine init`
489
491
1. Set `build_engine` to `podman` in `tilt-settings.yaml` (optional, only if both Docker & podman are installed)
490
-
1. Define the env variable `DOCKER_HOST` to the right socket while running tilt (eg. `DOCKER_HOST=unix:///run/user/$(id -u)/podman/podman.sock tilt up`)
492
+
1. Define the env variable `DOCKER_HOST` to the right socket:
493
+
- on Linux/systemd: `export DOCKER_HOST=unix:///run/user/$(id -u)/podman/podman.sock`
494
+
- on macOS: `export DOCKER_HOST=$(podman machine inspect <machine> | jq -r '.[0].ConnectionInfo.PodmanSocket.Path')`where `<machine>` is the podman machine name
495
+
1. Run `tilt up`
491
496
492
497
NB: The socket defined by `DOCKER_HOST` is used only for the `hack/tools/internal/tilt-prepare` command, the image build is running the `podman build`/`podman push` commands.
498
+
499
+
## Troubleshooting Tilt
500
+
501
+
### Tilt is stuck
502
+
503
+
Sometimes tilt looks stuck when it's waiting on connections.
504
+
505
+
Ensure that docker/podman is up and running and your kubernetes cluster is reachable.
506
+
507
+
### Errors running tilt-prepare
508
+
509
+
#### `failed to get current context from the KubeConfig file`
510
+
511
+
- Ensure the cluster in the default context is reachable by running `kubectl cluster-info`
512
+
- Switch to the right context with `kubectl config use-context`
513
+
- Ensure the context is allowed, see [**allowed_contexts** field](#tilt-settings-fields)
514
+
515
+
#### `Cannot connect to the Docker daemon`
516
+
517
+
- Ensure the docker daemon is running ;) or for podman see [Using Podman](#using-podman)
518
+
- If a DOCKER_HOST is specified:
519
+
- check that the DOCKER_HOST has the correct prefix (usually `unix://`)
520
+
- ensure docker/podman is listening on $DOCKER_HOST using `fuser` / `lsof` / `netstat -u`
0 commit comments