added headers
This commit is contained in:
1 file changed
+9
-3
@@ -28,7 +28,6 @@ Allow 8080 through the firewall
|
|||||||
Field | Input | Note |
|
Field | Input | Note |
|
||||||
| ----- | ----- | ----- |
|
| ----- | ----- | ----- |
|
||||||
| Name | postgresql | |
|
| Name | postgresql | |
|
||||||
| Owner | `<user>` | |
|
|
||||||
| Image | docker.io/library/postgres:18 | |
|
| Image | docker.io/library/postgres:18 | |
|
||||||
| Restart Policy | always | Only shows for non-root if linger is enabled
|
| Restart Policy | always | Only shows for non-root if linger is enabled
|
||||||
| Volume | /opt/cloud/database -> /var/lib/postgresql | Writable and Private |
|
| Volume | /opt/cloud/database -> /var/lib/postgresql | Writable and Private |
|
||||||
@@ -39,7 +38,6 @@ Allow 8080 through the firewall
|
|||||||
| Field | Input | Note |
|
| Field | Input | Note |
|
||||||
| ----- | ----- | ----- |
|
| ----- | ----- | ----- |
|
||||||
| Name | nextcloud | |
|
| Name | nextcloud | |
|
||||||
| Owner | `<user>` | |
|
|
||||||
| Image | docker.io/library/nextcloud:latest | |
|
| Image | docker.io/library/nextcloud:latest | |
|
||||||
| Restart Policy | always | Only shows for non-root if linger is enabled
|
| Restart Policy | always | Only shows for non-root if linger is enabled
|
||||||
| Volume | /opt/cloud/nextcloud -> /var/www/html | Writable and Private |
|
| Volume | /opt/cloud/nextcloud -> /var/www/html | Writable and Private |
|
||||||
@@ -47,14 +45,22 @@ Allow 8080 through the firewall
|
|||||||
|
|
||||||
## Migrate Containers to Quadlets
|
## Migrate Containers to Quadlets
|
||||||
|
|
||||||
Stop Containers
|
### Stop and Remove Containers
|
||||||
|
|
||||||
|
### Create Volumes
|
||||||
|
|
||||||
`podman volume create postgresql-data`
|
`podman volume create postgresql-data`
|
||||||
|
|
||||||
`podman volume create nextcloud-data`
|
`podman volume create nextcloud-data`
|
||||||
|
|
||||||
|
### Move data to volumes
|
||||||
|
|
||||||
`podman unshare mv /opt/cloud/database/* ~/.local/share/containers/storage/volumes/postgresql-data/_data/`
|
`podman unshare mv /opt/cloud/database/* ~/.local/share/containers/storage/volumes/postgresql-data/_data/`
|
||||||
|
|
||||||
`podman unshare mv /opt/cloud/nextcloud/ ~/.local/share/containers/storage/volumes/nextcloud-data/_data/`
|
`podman unshare mv /opt/cloud/nextcloud/ ~/.local/share/containers/storage/volumes/nextcloud-data/_data/`
|
||||||
|
|
||||||
|
### Create container configs
|
||||||
|
|
||||||
`mkdir -p ~/.config/containers/systemd/`
|
`mkdir -p ~/.config/containers/systemd/`
|
||||||
|
|
||||||
`nano ~/.config/containers/systemd/cloud.pod`
|
`nano ~/.config/containers/systemd/cloud.pod`
|
||||||
|
|||||||
Reference in new issue
Block a user