ubuntu使用LXD容器
列出可用容器镜像
lxc image list tuna-images: centos |grep amd
下载并运行某个容器镜像
lxc launch tuna-images:
进入容器内部
sudo lxc exec yourcontainername bash
列出本机容器情况
sudo lxc list
表示从宿主机复制文件到容器
lxc file push
表示将容器的文件复制到主机
lxc file pull
lxc image list tuna-images: centos |grep amd
lxc launch tuna-images:
sudo lxc exec yourcontainername bash
sudo lxc list
lxc file push
lxc file pull
评论已关闭