Skip to content

Commit 1113318

Browse files
cardilabrennan89
andcommitted
Align with knative/func#481
This PR aligns the docs to match updated ones on upstream - that rely on systemd to manage secure UNIX socket. Co-authored-by: Ashleigh Brennan <[email protected]>
1 parent 923da24 commit 1113318

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

modules/serverless-functions-podman.adoc

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,28 @@
77

88
If 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
----

0 commit comments

Comments
 (0)