migrating_mariadb_database_from_lxc_to_docker
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| migrating_mariadb_database_from_lxc_to_docker [2024/11/02 04:29] – [3. Ensure Backup File Availability in Docker Container] oso | migrating_mariadb_database_from_lxc_to_docker [2024/11/02 04:36] (current) – oso | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| - | | + | |
| < | < | ||
| Line 14: | Line 14: | ||
| </ | </ | ||
| - | | + | |
| ==== 2. Copy the Backup to Docker Host ==== | ==== 2. Copy the Backup to Docker Host ==== | ||
| - | | + | |
| < | < | ||
| Line 25: | Line 25: | ||
| </ | </ | ||
| - | | + | |
| ==== 3. Ensure Backup File Availability in Docker Container ==== | ==== 3. Ensure Backup File Availability in Docker Container ==== | ||
| Line 36: | Line 36: | ||
| </ | </ | ||
| - | * **Alternative Methods**: | + | === Alternative Methods: |
| - | | + | |
| + | | ||
| < | < | ||
| docker cp / | docker cp / | ||
| </ | </ | ||
| - | | + | |
| < | < | ||
| docker run -d --name mariadb -v / | docker run -d --name mariadb -v / | ||
| Line 49: | Line 50: | ||
| - | | + | |
| < | < | ||
| Line 55: | Line 56: | ||
| </ | </ | ||
| - | | + | * Run the following command to import the database. '' |
| < | < | ||
| Line 63: | Line 64: | ||
| ==== 5. Verify the Import ==== | ==== 5. Verify the Import ==== | ||
| - | | + | |
| < | < | ||
| Line 72: | Line 73: | ||
| Notes | Notes | ||
| - | | + | |
| - | | + | |
migrating_mariadb_database_from_lxc_to_docker.1730521799.txt.gz · Last modified: 2024/11/02 04:29 by oso
