File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 77
88If you are using podman, you must run the following commands before getting started with {FunctionsProductName}:
99
10- . Start the podman service that listens on port `1234 `:
10+ . Start the podman service that serves the Docker API on a UNIX socket at `${XDG_RUNTIME_DIR}/podman/podman.sock `:
1111+
1212[source,terminal]
1313----
14- $ podman system service --time=0 tcp:0.0.0.0:1234 & # let run in background or another terminal
14+ $ systemctl start --user podman.socket
1515----
16+ +
17+ [NOTE]
18+ ====
19+ On most systems, this socket is located at `/run/user/$(id -u)/podman/podman.sock`.
20+ ====
1621
1722. Establish the environment variable that is used to build a function:
1823+
1924[source,terminal]
2025----
21- $ export DOCKER_HOST=tcp ://127.0.0.1:1234
26+ $ export DOCKER_HOST="unix ://${XDG_RUNTIME_DIR}/podman/podman.sock"
2227----
28+
29+ . Run the build command with `-v` to see verbose output. You should see a connection to your local UNIX socket:
2330+
2431[source,terminal]
2532----
26- $ func build -v
33+ $ kn func build -v
2734----
You can’t perform that action at this time.
0 commit comments