docker项目实施
鲲鹏916架构openEuler-arm64成功安装docker并跑通tomcat容器_闭关苦炼内功的技术博客_51CTO博客鲲鹏916架构openEuler-arm64成功安装docker并跑通tomcat容器,本文是基于之前这篇文章鲲鹏920架构arm64版本centos7安装docker下面开始先来看下系统版本卸载旧版本旧版本的Docker称为docker或者docker-engine,使用以下命令卸载旧版本:yumremovedocker\\https://blog.51cto.com/qchenz/5073283
[鲲鹏920-arm64][Euler OS 20.03 LTS] Docker安装_鲲鹏920s arm 欧拉操作系统下载_popboy126的博客-CSDN博客文章目录1 安装前准备1.1 查看系统信息1.2 配置系统源2 安装2.1 移除旧的版本2.2 配置docker ce源2.3 安装docker依赖2.4 安装docker-ce2.5 配置docker启动2.6 配置docker加速器2.6 测试安装参考1 安装前准备1.1 查看系统信息使用hostnamectl命令查看系统信息hostnamectl# 输出以下信息# Static hostname: n/a#Transient hostname: host-14-0-0-33#https://blog.csdn.net/popboy126/article/details/109072221
1、apisix 安装
GitHub - qwxingzhe/apisix-docker-compose: docker-compose安装apisix及相关应用docker-compose安装apisix及相关应用. Contribute to qwxingzhe/apisix-docker-compose development by creating an account on GitHub.https://github.com/qwxingzhe/apisix-docker-compose
欧拉for arm
移动云开源镜像站-Linux系统订阅服务https://mirrors.cmecloud.cn/bclinux/oe21.10/ISO/aarch64/
docker 版的redis安装
Dockerhttps://hub.docker.com/_/redis
docker版的nginx安装
Dockerhttps://hub.docker.com/_/nginx
docker版的minio安装
Dockerhttps://hub.docker.com/r/bitnami/minio
harbor 仓库docker安装
Release v2.8.0-rc1 · goharbor/harbor · GitHubAn open source trusted cloud native registry project that stores, signs, and scans content. - Release v2.8.0-rc1 · goharbor/harborhttps://github.com/goharbor/harbor/releases/tag/v2.8.0-rc1docker按照harbor
https://www.cnblogs.com/andyxie/p/16531567.htmlhttps://www.cnblogs.com/andyxie/p/16531567.htmldocker仓库harbor安装与使用_harbor docker_阿蔡BLOG的博客-CSDN博客docker最重要的三个概念:docker镜像,docker容器,以及docker仓库。docker镜像是是docker虚拟化中最基础的部分,通过docker镜像来启动一个docker容器,docker 容器是docker虚拟化的产物。而docker仓库是用来存储docker镜像的地方,分为公有仓库和私用仓库。默认的公共仓库,对外开放、免费或者付费使用,企业测试环境和生产环境推荐自建私有仓库。私有仓库的特点:安全、可靠、稳定、高效,可以根据自身的业务体系进行灵活升级和管理。使用harbor做为dochttps://blog.csdn.net/robin_cai/article/details/124292678
apisix-docker-compose
Prerequisites
- Docker
To install docker run this script
bash docker_install.sh
or
./docker_install.sh
1.极速开始
1.1 安装简洁组合
- apisix
- etcd
- apisix-dashboard
// 下载安装
git clone https://github.com/qwxingzhe/apisix-docker-compose.git
docker-compose up -d// 查看是否启动成功
docker-compose ps
1.2 浏览器访问 apisix-dashboard
访问地址: http://{替换成你的IP地址}:9000
2.ApiSix及相关应用安装
2.1 安装应用组合
- apisix
- etcd
- apisix-dashboard
- grafana
- prometheus
// 下载安装
git clone https://github.com/qwxingzhe/apisix-docker-compose.git
docker-compose --profile senior up -d[+] Running 45/45⠿ apisix-dashboard Pulled 10.1s⠿ 801bfaa63ef2 Pull complete 3.9s⠿ 7d6f5d6e92f9 Pull complete 4.1s⠿ d61335225f3c Pull complete 7.7s⠿ 98cbd2a348ad Pull complete 8.3s⠿ 76ebd408f232 Pull complete 8.4s⠿ grafana Pulled 59.2s⠿ 188c0c94c7c5 Pull complete 22.7s⠿ de79f55c0b0f Pull complete 23.4s⠿ a1b840f120d9 Pull complete 24.8s⠿ b46b3ffb9b7d Pull complete 26.5s⠿ f04fb38cc8ac Pull complete 41.3s⠿ 4f4fb700ef54 Pull complete 41.5s⠿ 4abcddc85579 Pull complete 41.9s⠿ 5059d9c487b2 Pull complete 42.2s⠿ apisix Pulled 35.7s⠿ cbdbe7a5bc2a Pull complete 9.5s⠿ 0be45b5f3fdc Pull complete 11.7s⠿ fe91d7d6c8b6 Pull complete 11.8s⠿ bba171cece5a Pull complete 16.8s⠿ 3b0a9ba4c3e4 Pull complete 18.9s⠿ 4d1dac68bdbf Pull complete 19.1s⠿ prometheus Pulled 48.2s⠿ 3cb635b06aa2 Pull complete 13.2s⠿ 34f699df6fe0 Pull complete 14.7s⠿ 33d6c9635e0f Pull complete 25.2s⠿ f2af7323bed8 Pull complete 28.0s⠿ c16675a6a294 Pull complete 28.6s⠿ 827843f6afe6 Pull complete 28.9s⠿ 3d272942eeaf Pull complete 29.3s⠿ 7e785cfa34da Pull complete 29.6s⠿ 05e324559e3b Pull complete 30.0s⠿ 170620261a59 Pull complete 30.3s⠿ ec35f5996032 Pull complete 30.9s⠿ 5509173eb708 Pull complete 31.3s⠿ etcd Pulled 31.6s⠿ 20b41457e783 Pull complete 11.5s⠿ 59f2fa427858 Pull complete 11.7s⠿ 2fd92213f047 Pull complete 12.4s⠿ 2d71eb8c5d5a Pull complete 13.9s⠿ 264a0a65d57b Pull complete 14.1s⠿ cfdcc2b5fcc5 Pull complete 14.2s⠿ eff0370e5518 Pull complete 14.9s⠿ ee24047772ce Pull complete 15.0s⠿ f32d7a6c09a9 Pull complete 15.2s
[+] Running 6/6⠿ Network apisix-docker-compose-main_apisix Created 0.9s⠿ Container apisix-dashboard Started 30.2s⠿ Container grafana Started 33.7s⠿ Container prometheus Started 28.4s⠿ Container etcd Started 33.8s⠿ Container apisix Started 28.2s
[root@localhost apisix-docker-compose-main]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
busybox 1.36 66ba00ad3de8 3 months ago 4.87MB
ubuntu 23.04 ab765816b397 3 months ago 70.3MB
openeuler/openeuler 22.03 d9bff1b2db49 3 months ago 191MB
rockylinux 8.7 63f107ef819e 3 months ago 197MB
almalinux 8.7 acaca326f3b3 4 months ago 190MB
openanolis/anolisos latest 6f8a2912d1d7 7 months ago 205MB
openanolis/anolisos 8.6-x86_64 6b03ceb18d9c 9 months ago 205MB
busybox 1.35 a711f05d3384 15 months ago 1.24MB
busybox latest beae173ccac6 15 months ago 1.24MB
prom/prometheus latest a3d385fc29f9 15 months ago 201MB
ubuntu latest ba6acccedd29 18 months ago 72.8MB
ubuntu 18.04 5a214d77f5d7 18 months ago 63.1MB
centos 7.9.2009 eeb6ee3f44bd 19 months ago 204MB
centos centos7.9.2009 eeb6ee3f44bd 19 months ago 204MB
pingcap/tidb latest 778bf9e1e051 23 months ago 145MB
pingcap/tikv latest 6e34b1d95950 23 months ago 355MB
pingcap/pd latest d55858ba1d82 23 months ago 151MB
registry.cn-shanghai.aliyuncs.com/qwxingzhe/apisix-dashboard 2.2 63563ede4104 2 years ago 39.8MB
apache/apisix 2.0-alpine e586bcd6e3cf 2 years ago 111MB
grafana/grafana 7.3.4 651ff2dc930f 2 years ago 187MB
bitnami/etcd 3.4.9 ea2f063671fe 2 years ago 132MB
pingcap/tispark v2.1.1 501543755826 3 years ago 894MB
grafana/grafana 6.0.1 ffd9c905f698 4 years ago 241MB
how2j/centos7_tools_ftp_java_mysql55_tomcat7 latest 95cfecf65fc9 4 years ago 1.43GB
pingcap/tidb-vision latest e9b25d9f7bdb 4 years ago 47.6MB
prom/prometheus v2.2.1 cc866859f8df 5 years ago 113MB
prom/pushgateway v0.3.1 434efa6ed9db 6 years ago 13.3MB
imagine10255/ubuntu12-apache-php53 latest 0ef16d5ab8d1 6 years ago 268MB
[root@localhost apisix-docker-compose-main]# docker-compose ps
NAME COMMAND SERVICE STATUS PORTS
apisix "sh -c '/usr/bin/api…" apisix running 0.0.0.0:80->9080/tcp, :::80->9080/tcp, 0.0.0.0:443->9443/tcp, :::443->9443/tcp
apisix-dashboard "/usr/local/apisix-d…" apisix-dashboard exited (2)
etcd "/entrypoint.sh etcd" etcd running 0.0.0.0:2379->2379/tcp, :::2379->2379/tcp, 2380/tcp
[root@localhost apisix-docker-compose-main]# // 查看是否启动成功
docker-compose ps
2.2 浏览器访问
apisix-dashboard 访问地址: http://{替换成你的IP地址}:9000
grafana 访问地址: http://{替换成你的IP地址}:3000
prometheus 访问地址: http://{替换成你的IP地址}:9090