mirror-web/help/_posts/1970-01-01-lxc-images.md
2020-08-15 16:32:25 +08:00

723 B
Raw Blame History

category layout mirrorid
help help lxc-images

LXC Images 镜像帮助

LXC 1.0 以上版本增加了 download 模版,支持下载定义好的系统镜像。

欲使用 TUNA 镜像进行下载加速,可以在 lxc-create -t download 的选项部分, 增加 --server {{ site.hostname }}/lxc-images 即可,例如:

# lxc-create -t download -n my-container -- --server {{ site.hostname }}/lxc-images

LXD/LXC 2.0及以上版本使用镜像加速的方法:

创建一个remote链接指向镜像站即可或替换掉默认的images链接。

# lxc remote add tuna-images https://{{ site.hostname }}/lxc-images/ --protocol=simplestreams --public
# lxc image list tuna-images: