1、安装Docker
#CentOS 7、Debian、Ubuntu
curl -sSL https://get.docker.com/ | sh
systemctl start docker
systemctl enable docker
2、安装Docker Compose
curl -SL https://github.com/docker/compose/releases/download/v2.15.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
3、安装网心云
docker pull onething1/wxedge
docker run -d --name=wxedge --restart=always --privileged --net=host --tmpfs /run --tmpfs /tmp -v /磁盘路径:/storage:rw registry.hub.docker.com/onething1/wxedge
4、其他命令
打开浏览器,输入http://ip:18888(ip替换成安装设备的ip),比如http://192.168.1.10:18888
部分常用小命令
①、停止容器
docker stop wxedge
②、删除容器
docker rm wxedge
③、删除镜像
docker rmi onething1/wxedge
docker rmi registry.hub.docker.com/onething1/wxedge