Skip to content

Commit

Permalink
doc: use tag variable for docker-based commands
Browse files Browse the repository at this point in the history
Users attempting to run docker-based commands from production
images will not have a local `:latest` copy, and will not be able
to proceed through the getting started guide. This ensures
that the latest tag available on quay.io is render in the docs

Signed-off-by: Alex Tomic <atomic777@gmail.com>
  • Loading branch information
atomic77 authored and mtardy committed Jul 29, 2024
1 parent 2b07de6 commit 4cd80e0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/content/en/docs/getting-started/enforcement.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ docker run --name tetragon --rm --pull always \
--pid=host --cgroupns=host --privileged \
-v ${PWD}/file_monitoring_enforce.yaml:/etc/tetragon/tetragon.tp.d/file_monitoring_enforce.yaml \
-v /sys/kernel/btf/vmlinux:/var/lib/tetragon/btf \
quay.io/cilium/tetragon:latest
quay.io/cilium/tetragon:{{< latest-version >}}
{{< /tab >}}
{{< /tabpane >}}

Expand Down
2 changes: 1 addition & 1 deletion docs/content/en/docs/getting-started/file-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ docker run -d --name tetragon --rm --pull always \
--pid=host --cgroupns=host --privileged \
-v ${PWD}/file_monitoring.yaml:/etc/tetragon/tetragon.tp.d/file_monitoring.yaml \
-v /sys/kernel/btf/vmlinux:/var/lib/tetragon/btf \
quay.io/cilium/tetragon:latest
quay.io/cilium/tetragon:{{< latest-version >}}
{{< /tab >}}
{{< /tabpane >}}

Expand Down
2 changes: 1 addition & 1 deletion docs/content/en/docs/getting-started/install-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ using the released container images.
docker run -d --name tetragon --rm --pull always \
--pid=host --cgroupns=host --privileged \
-v /sys/kernel/btf/vmlinux:/var/lib/tetragon/btf \
quay.io/cilium/tetragon:latest
quay.io/cilium/tetragon:{{< latest-version >}}
```

This will start Tetragon in a privileged container running in the background.
Expand Down
2 changes: 1 addition & 1 deletion docs/content/en/docs/getting-started/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ docker run -d --name tetragon --rm --pull always \
--pid=host --cgroupns=host --privileged \
-v ${PWD}/network_egress_cluster_subst.yaml:/etc/tetragon/tetragon.tp.d/network_egress_cluster_subst.yaml \
-v /sys/kernel/btf/vmlinux:/var/lib/tetragon/btf \
quay.io/cilium/tetragon:latest
quay.io/cilium/tetragon:{{< latest-version >}}
```

Once Tetragon is running, use `docker exec` to run the `tetra getevents` command
Expand Down

0 comments on commit 4cd80e0

Please sign in to comment.