notes update

This commit is contained in:
Hugh Ratsch
2025-03-03 19:13:27 -06:00
parent 26eccbf5d1
commit 5fab863220
2 changed files with 5 additions and 5 deletions
@@ -27,7 +27,7 @@ Task:
4. Configure SSH to disable root login and only allow key-based authentication
5. Set up a cron job to run system updates every Sunday at 2 AM
## Scenario 4: Container Management
## Scenario 4: Container Management
Task:
1. Pull the latest nginx container image from registry.access.redhat.com
2. Create a persistent volume at /data/web
+4 -4
View File
@@ -46,10 +46,10 @@ From Practice Scenarios v1, Scenario 4:
4. Configure automatic startup
```bash
podman generate systemd --new --name web-server
mv web-server.service ~/.config/systemd/user/
systemctl --user enable web-server
systemctl --user start web-server
podman generate systemd --new --name web-server # Generate systemd service file
mv web-server.service ~/.config/systemd/user/ # Move service file to user systemd directory
systemctl --user enable web-server # Enable service to start on boot
systemctl --user start web-server # Start service immediately
```
This command generates a systemd service file for the web-server container.