mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-23 01:34:33 +07:00
feat(scripts): view logs of PXE containers selectively
This commit is contained in:
parent
4497676407
commit
441b2e6ea2
@ -8,6 +8,13 @@ To view PXE server (includes DHCP, TFTP and HTTP server) logs:
|
|||||||
./scripts/pxe-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
|
## 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
|
- 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
|
#!/bin/sh
|
||||||
|
|
||||||
docker compose --project-directory ./metal/roles/pxe_server/files/ logs --follow
|
docker compose \
|
||||||
|
--project-directory ./metal/roles/pxe_server/files/ \
|
||||||
|
logs \
|
||||||
|
--follow \
|
||||||
|
${@}
|
||||||
|
Loading…
Reference in New Issue
Block a user