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 7
7
8
8
If you are using podman, you must run the following commands before getting started with {FunctionsProductName}:
9
9
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 `:
11
11
+
12
12
[source,terminal]
13
13
----
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
15
15
----
16
+ +
17
+ [NOTE]
18
+ ====
19
+ On most systems, this socket is located at `/run/user/$(id -u)/podman/podman.sock`.
20
+ ====
16
21
17
22
. Establish the environment variable that is used to build a function:
18
23
+
19
24
[source,terminal]
20
25
----
21
- $ export DOCKER_HOST=tcp ://127.0.0.1:1234
26
+ $ export DOCKER_HOST="unix ://${XDG_RUNTIME_DIR}/podman/podman.sock"
22
27
----
28
+
29
+ . Run the build command with `-v` to see verbose output. You should see a connection to your local UNIX socket:
23
30
+
24
31
[source,terminal]
25
32
----
26
- $ func build -v
33
+ $ kn func build -v
27
34
----
You can’t perform that action at this time.
0 commit comments