diff --git a/docs/src/troubleshooting.md b/docs/src/troubleshooting.md index 7df59784..1f58a99c 100644 --- a/docs/src/troubleshooting.md +++ b/docs/src/troubleshooting.md @@ -8,6 +8,13 @@ To view PXE server (includes DHCP, TFTP and HTTP server) logs: ./scripts/pxe-logs ``` +You can view the logs of one or more containers selectively, for example: + +```sh +./scripts/pxe-logs dhcp +./scripts/pxe-logs tftp http +``` + ## Nodes not booting from the network - Plug a monitor and a keyboard to one of the bare metal node if possible to make the debugging process easier diff --git a/scripts/pxe-logs b/scripts/pxe-logs index 8f2c5f67..14c0eda8 100755 --- a/scripts/pxe-logs +++ b/scripts/pxe-logs @@ -1,3 +1,7 @@ #!/bin/sh -docker compose --project-directory ./metal/roles/pxe_server/files/ logs --follow +docker compose \ + --project-directory ./metal/roles/pxe_server/files/ \ + logs \ + --follow \ + ${@}