当前位置: 首页 > 工具软件 > lxd-images > 使用案例 >

LXC/LXD拉取镜像至本地并设置别名

茹正祥
2023-12-01
ubuntu@shenzhen:~ $ lxc image copy tuna-images:ubuntu/20.04 local: --copy-aliases
Image copied successfully!                     
ubuntu@shenzhen:~ $ lxc init ubuntu/focal focal
Creating focal
ubuntu@shenzhen:~ $ lxc image list
+-----------------------+--------------+--------+-------------------------------------+--------------+-----------+----------+------------------------------+
|         ALIAS         | FINGERPRINT  | PUBLIC |             DESCRIPTION             | ARCHITECTURE |   TYPE    |   SIZE   |         UPLOAD DATE          |
+-----------------------+--------------+--------+-------------------------------------+--------------+-----------+----------+------------------------------+
| centos/8              | 346e46c24103 | no     | Centos 8 amd64 (20200814_07:08)     | x86_64       | CONTAINER | 125.16MB | Aug 15, 2020 at 6:22am (UTC) |
+-----------------------+--------------+--------+-------------------------------------+--------------+-----------+----------+------------------------------+
| ubuntu/focal (7 more) | 1c49c35aba7f | no     | Ubuntu focal amd64 (20200814_08:27) | x86_64       | CONTAINER | 98.00MB  | Aug 15, 2020 at 1:19pm (UTC) |
+-----------------------+--------------+--------+-------------------------------------+--------------+-----------+----------+------------------------------+
ubuntu@shenzhen:~ $ lxc image copy tuna-images:centos/7 local: --copy-aliases
Image copied successfully!                   
ubuntu@shenzhen:~ $ lxc image list
+-----------------------+--------------+--------+-------------------------------------+--------------+-----------+----------+------------------------------+
|         ALIAS         | FINGERPRINT  | PUBLIC |             DESCRIPTION             | ARCHITECTURE |   TYPE    |   SIZE   |         UPLOAD DATE          |
+-----------------------+--------------+--------+-------------------------------------+--------------+-----------+----------+------------------------------+
| centos/7 (3 more)     | 8aca780092e5 | no     | Centos 7 amd64 (20200814_07:08)     | x86_64       | CONTAINER | 83.16MB  | Aug 15, 2020 at 1:20pm (UTC) |
+-----------------------+--------------+--------+-------------------------------------+--------------+-----------+----------+------------------------------+
| centos/8              | 346e46c24103 | no     | Centos 8 amd64 (20200814_07:08)     | x86_64       | CONTAINER | 125.16MB | Aug 15, 2020 at 6:22am (UTC) |
+-----------------------+--------------+--------+-------------------------------------+--------------+-----------+----------+------------------------------+
| ubuntu/focal (7 more) | 1c49c35aba7f | no     | Ubuntu focal amd64 (20200814_08:27) | x86_64       | CONTAINER | 98.00MB  | Aug 15, 2020 at 1:19pm (UTC) |
+-----------------------+--------------+--------+-------------------------------------+--------------+-----------+----------+------------------------------+
 类似资料: