1,首先安装系统
我安装的是Armbian Stretch
2,登陆系统,root用户默认密码1234
3,执行一下命令,安装docker-ce
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add –
echo “deb [arch=arm64] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable” | \
sudo tee /etc/apt/sources.list.d/docker.list
#更新软件包要很长时间
sudo apt-get update
sudo apt-get install -y docker-ce
4,检查docker是否安装成功,输出docker信息即为成功
docker version
docker pull kanshudj/n1-openwrtgateway:r9.10.1
ip link set eth0 promisc on
docker network create -d macvlan –subnet=10.10.1.0/24 –gateway=10.10.1.1 -o parent=eth0 macnet
docker run –restart always -d –network macnet –privileged kanshudj/n1-openwrtgateway:r9.10.1 /sbin/init
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4e912d7d0692 kanshudj/n1-openwrtgateway:r9.10.1 “/sbin/init” 11 seconds ago Up 9 seconds wonderful_cannon
docker exec -it 4e912d7d0692 sh
BusyBox v1.30.0 () built-in shell (ash)
vi /etc/config/network
/etc/init.d/network restart
exit