updated notes

This commit is contained in:
Hugh Ratsch
2025-02-20 14:58:49 -06:00
parent 5e2473ffa5
commit 8d6ad962dd
+22
View File
@@ -943,3 +943,25 @@ exec /usr/lib/systemd/systemd
### the system may take a while to boot
```
## Manage Containers on RHEL
### podman
```bash
sudo dnf install podman # Install podman
podman pull nginx:latest # Pull the latest nginx image
podman images # Display the images
podman run --name mynginx -d -p 8080:80 nginx:latest # Run the nginx container
podman ps # Display the running containers
podman logs mynginx # Display the logs of the mynginx container
podman exec -it mynginx bash # Execute a command in the mynginx container
podman stop mynginx # Stop the mynginx container
podman start mynginx # Start the mynginx container
podman rm mynginx # Remove the mynginx container
podman rmi nginx:latest # Remove the nginx image
```