Last active
June 24, 2022 03:16
-
-
Save adam-stokes/4dfb10a876875fb82c67 to your computer and use it in GitHub Desktop.
Exporting/Importing LXD Images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# On local machine | |
lxc launch images:ubuntu/wily/amd64 ubuntu-64 | |
lxc publish ubuntu-64 db-server | |
scp /var/lib/lxc/images/<fingerprint id from lxc publish> | |
# On remote host | |
lxc image import 63c7c79560194cf9792fc34d0a8c63ff6fe17b0a4dc185ac9544b079f4b2a7fc | |
lxc launch 63c7c7956019 u1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment