在实际使用过程中,经常用到文件映射操作 只读映射 映射命令语法如下: lxc config device add { container-name} { name} disk source={ /path/to/source/dir/} path={ /path/to/dest/onto/container/} 操作环境是ubuntu 20.04 LTS,容器为ubuntu 18.04 # 进入容器内的bash lxc exec ubuntu-1804 bash # 创建一个目标文件夹 mkdi