notes update
This commit is contained in:
@@ -27,7 +27,7 @@ Task:
|
|||||||
4. Configure SSH to disable root login and only allow key-based authentication
|
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
|
5. Set up a cron job to run system updates every Sunday at 2 AM
|
||||||
|
|
||||||
## Scenario 4: Container Management
|
## Scenario 4: Container Management ✅
|
||||||
Task:
|
Task:
|
||||||
1. Pull the latest nginx container image from registry.access.redhat.com
|
1. Pull the latest nginx container image from registry.access.redhat.com
|
||||||
2. Create a persistent volume at /data/web
|
2. Create a persistent volume at /data/web
|
||||||
|
|||||||
@@ -46,10 +46,10 @@ From Practice Scenarios v1, Scenario 4:
|
|||||||
|
|
||||||
4. Configure automatic startup
|
4. Configure automatic startup
|
||||||
```bash
|
```bash
|
||||||
podman generate systemd --new --name web-server
|
podman generate systemd --new --name web-server # Generate systemd service file
|
||||||
mv web-server.service ~/.config/systemd/user/
|
mv web-server.service ~/.config/systemd/user/ # Move service file to user systemd directory
|
||||||
systemctl --user enable web-server
|
systemctl --user enable web-server # Enable service to start on boot
|
||||||
systemctl --user start web-server
|
systemctl --user start web-server # Start service immediately
|
||||||
```
|
```
|
||||||
This command generates a systemd service file for the web-server container.
|
This command generates a systemd service file for the web-server container.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user