campus-imaotai icon indicating copy to clipboard operation
campus-imaotai copied to clipboard

分享一个ARM部署Docker成功过程。

Open truman1998 opened this issue 1 year ago • 7 comments

最简单的还是这个 docker 一件部署 https://github.com/xiankaiyao/campus-imaotai/releases/tag/v1.0.12 需要更改适应ARM架构的 mysql5.7 容器镜像。 把mysql-dockerfile、docker-compose.yml里面的镜像名称更改为biarms/mysql

campus-mysql:
    container_name: campus-mysql
    image: biarms/mysql
# 基础镜像
FROM biarms/mysql

在执行就行了,全程不用其他操作,也不用安装宝塔,只用安装 docker 和docker-compose

docker-compose build
docker-compose up -d

如果发送验证码错误 更换浏览器多点几下试试。

truman1998 avatar Feb 20 '24 21:02 truman1998

mac m2 部署成功:https://mp.weixin.qq.com/s/kv6_hX8qVSuA6d7EYy1u4g

k8scat avatar Feb 20 '24 23:02 k8scat

厉害,要的就是这个

justincnn avatar Feb 25 '24 04:02 justincnn

感谢,手动导入表结构之后成功了

luoxufeiyan avatar Feb 26 '24 06:02 luoxufeiyan

提示这个 [root@win-20240224byv 1.0.12]# docker-compose up -d [+] Running 1/0 ✘ Network 1012_campus_net Error 0.0s failed to create network 1012_campus_net: Error response from daemon: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-f340b38d60a0 -j RETURN: iptables: No chain/target/match by that name. (exit status 1))

125540947 avatar Mar 02 '24 11:03 125540947

你这个部署成功后能正常运行么?

czmchen avatar Mar 25 '24 00:03 czmchen

你这个部署成功后能正常运行么?

可以正常运行

luoxufeiyan avatar Mar 25 '24 01:03 luoxufeiyan

我直接改成MySQL8也是可以的

aazainn avatar Apr 02 '24 02:04 aazainn