Docker版本高于19.03版本引入了多平台镜像构建器,所以我们可以在不同平台上去构建amd64的镜像用于运行elisim
docker buildx create --name mybuilder --use --platform linux/amd64,linux/arm64,linux/arm/v7
docker buildx build --platform linux/amd64 -t elibot .
docker run -it --rm --platform linux/amd64 -d -p 6080:6080 --name elisim elibot
上述命令并未挂载 本地卷,实际使用请根据自己的卷名进行挂载,如下所示
docker run -it --rm --platform linux/amd64 -d -v EliSim:/home/elibot/EliSim -p 6080:6080 --name elisim elibot
浏览器进入以下地址