2

看看 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

有什么接近的吗?

4

0 回答 0