参考:http://www.zoobab.com/docker-openwrt-image
docker仅64bit因此下载openwrt的x64回来:
$ wget http://downloads.openwrt.org/attitude_adjustment/12.09-rc2/x86/generic/openwrt-x86-generic-rootfs.tar.gz
然后通过zcat将下载得到的rootfs.tar.gz导入docker中:
$ zcat openwrt-x86-generic-rootfs.tar.gz | docker import - openwrt-x86
用docker images查看一下docker import 得到的openwrt-x86的images镜像:
看到后,用docker run来运行一个简单的openwrt-x86的容器:
$ docker run -i openwrt-x86 cat /etc/banner
此时挂载到 /sbin/init:
$ docker run -i openwrt-x86 /sbin/init

标签: docker, openwrt, 镜像, x86

添加新评论