notes update

This commit is contained in:
Hugh Ratsch
2025-03-03 18:59:08 -06:00
parent 72792697e9
commit 26eccbf5d1
+16 -10
View File
@@ -28,35 +28,41 @@ From Practice Scenarios v1, Scenario 4:
### Solution Steps ### Solution Steps
1. Pull the nginx container image 1. Pull the nginx container image
```bash ```bash
# To be filled with my solution podman pull nginx:latest
``` ```
[My explanation will go here after completing the exercise] This command pulls the latest nginx container image from the registry.access.redhat.com registry.
2. Create and configure the persistent volume 2. Create and configure the persistent volume
```bash ```bash
# To be filled with my solution podman volume create webdata
``` ```
[My explanation will go here after completing the exercise] This command creates a persistent volume named webdata.
3. Run the container with the volume mounted 3. Run the container with the volume mounted
```bash ```bash
# To be filled with my solution podman run -d --name web-server -v webdata:/usr/share/nginx/html -p 8080:80 nginx:latest
``` ```
[My explanation will go here after completing the exercise] This command runs the nginx container with the webdata volume mounted at /usr/share/nginx/html and exposes it on port 8080.
4. Configure automatic startup 4. Configure automatic startup
```bash ```bash
# To be filled with my solution podman generate systemd --new --name web-server
mv web-server.service ~/.config/systemd/user/
systemctl --user enable web-server
systemctl --user start web-server
``` ```
[My explanation will go here after completing the exercise] This command generates a systemd service file for the web-server container.
### Verification ### Verification
```bash ```bash
# To be filled with my verification steps podman ps
``` ```
This command lists all running containers.
### Key Learnings ### Key Learnings
- [To be filled after completing the exercise] - Podman configuration for container management and persistence
- Systemd service configuration for container auto-start
- Container networking and port mapping
## Skills Demonstrated ## Skills Demonstrated
- Container Management - Container Management