📜  使用 docker 作为托管虚拟机 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:00.835000             🧑  作者: Mango

代码示例1
# Introducing RancherVM: Package and Run Virtual Machines as Docker Containers

docker run -v /var/run/docker.sock:/var/run/docker.sock -p 8080:80 -v /tmp/ranchervm:/ranchervm rancher/ranchervm
docker run -e "RANCHER_VM=true" --cap-add NET_ADMIN -v /tmp/ranchervm:/ranchervm --device /dev/kvm:/dev/kvm --device /dev/net/tun:/dev/net/tun rancher/vm-rancheros