docker汇总
软件安装
- CentOS7安装docker https://www.cnblogs.com/wang-yaz/p/10429899.html
- docker安装mysql https://www.cnblogs.com/jiefu/p/12204555.html
- 安装mysql出现权限不足 https://blog.csdn.net/qq_36266711/article/details/80967613
- docker搭建Redis集群-主从复制以及哨兵模式 https://blog.csdn.net/weixin_39984161/article/details/97285213
- docker安装 Redis 详细步骤及配置远程连接注意事项 https://blog.csdn.net/qq_43598211/article/details/88355586
- docker 安装 Redis Cluster https://www.cnblogs.com/surpassme/p/11832438.html
- docker安装Oracle https://www.cnblogs.com/OliverQin/p/9765808.html
- 安装docker-compose https://www.cnblogs.com/caidingyu/p/11320021.html
- Docker ubuntu apt-get更换国内源解决Dockerfile构建速度过慢 https://blog.csdn.net/weixin_33936401/article/details/93283478
- docker安装zookeeper https://blog.csdn.net/qq_26641781/article/details/80886831
- docker安装kafka https://blog.csdn.net/sinat_39393179/article/details/105091237
- docker安装kafka控制台: https://blog.csdn.net/zl1zl2zl3/article/details/101286061
- docker安装elasticsearch6.x https://blog.csdn.net/adminhui/article/details/86703268
- docker安装Nginx且配置静态资源访问 https://blog.csdn.net/qq_32911237/article/details/86300027
- docker安装elasticsearch集群
- docker 安装rabbitMQ https://www.jianshu.com/p/488aede2d4b0
- docker 安装zookeeper集群 https://www.jianshu.com/p/14d30aa63dc9
- docker 安装rocketmq单机版 https://www.cnblogs.com/franson-2016/p/12714692.html
- docker安装rocketmq集群 https://blog.csdn.net/qq_25760623/article/details/106411350
- docker安装sentinel https://blog.csdn.net/weixin_43835659/article/details/103915402
- docker安装consul https://blog.csdn.net/wayne_primes/article/details/89213631
- docker安装activemq https://www.cnblogs.com/liyiran/p/11523319.html
- docker安装fastdfs和nginx模块:https://blog.csdn.net/qq_37534947/article/details/106429656
- docker安装nacos https://www.cnblogs.com/ameken/articles/14752315.html
- docker安装mysql集群 https://www.cnblogs.com/konglingxi/p/14807857.html
- docker安装mycat https://www.cnblogs.com/konglingxi/p/14808850.html
- 设置国内docker镜像源
vi /etc/docker/daemon.json
{
"registry-mirrors":["https://6kx4zyno.mirror.aliyuncs.com"]
}
docker命令
docker rmi 镜像id
docker rm 容器id
docker自动启动
docker run --restart=always
docker update --restart=always <CONTAINER ID>
- docker部署springboot工程
- 上传jar包
- 编写
Dockerfile
文件
FROM java:8
MAINTAINER test 123@qq.com
VOLUME /tmp
ADD app.jar app.jar
RUN bash -c 'touch /app.jar'
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
- 在
Dockerfile
目录下执行docker build -t app .
生成镜像 - 运行镜像
docker run -d -v /data/img:/data/img -p 8443:8443 --name app app
需要用到的目录要映射进去