Ubuntu based docker-machine image

隐身守侯 提交于 2019-12-03 13:50:34

You could take advantage of the --virtualbox-boot2docker-url option.
This issue illustrates its usage (with an iso which is not a TinyCore one, but a RancherOS one)

docker-machine create -d virtualbox --virtualbox-boot2docker-url https://releases.rancher.com/os/latest/machine-rancheros.iso rancher

If RancherOS is a bit too bare, you can take some clues from how boot2docker is currently built, and build your own distro.

The key is to remove the parts not needed in order to be able to launch headless VM without using too much memory.

# Remove useless kernel modules, based on unclejack/debian2docker 
RUN cd $ROOTFS/lib/modules && \
rm -rf ./*/kernel/sound/* && \
rm -rf ./*/kernel/drivers/gpu/* && \
...
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!