mirror of
https://github.com/khuedoan/homelab.git
synced 2025-07-12 00:40:03 +07:00
feat(scripts): view logs of PXE containers selectively
This commit is contained in:
@ -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
|
||||
|
@ -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 \
|
||||
${@}
|
||||
|
Reference in New Issue
Block a user