使用“fork from here”快速虚拟化到新的LXC / docker容器

时间:2014-09-07 10:00:23

标签: docker virtualization lxc lxd

看看LXC和docker,它们都需要某种模板或图像才能运行容器。是否有一种技术允许将当前会话分成并行世界并在最后提交或丢弃所有更改?

例如:

$ echo "test"> test
$ fork-from-here just-a-name
just-a-name$ rm test
just-a-name$ cat test
cat: test: No such file or directory
just-a-name$ commit
container "just-a-name" state saved..
just-a-name$ logout
$ cat test 
test

接近那个?

0 个答案:

没有答案