当前位置:网站首页>Jenkins自动化部署,连接不到所依赖的服务【已解决】
Jenkins自动化部署,连接不到所依赖的服务【已解决】
2022-06-24 07:05:00 【Falling the bowie】
前言:Docker网络问题
如果之前使用的是Docker Compose启动所有依赖服务,会默认创建一个网络,所有的依赖服务都会在此网络之中,不同网络内的服务无法互相访问。我这里创建的网络是deploy_default,所以需要指定sh脚本中服务运行的的网络,否则启动的应用服务会无法连接到依赖服务。
- 使用
docker inspect mysql命令来查看mysql服务所在的网络;

- 通过
docker network ls来查看所有网络;

- 修改所有
sh脚本,修改服务运行的网络,添加一行--network deploy_default \即可。
注意不要在命令行附近加 "#"号开头的注释,会出现找不到--network命令错误。
边栏推荐
- JS to get the last element of the array
- There was an error checking the latest version of pip
- Rust procedure macro simply imitates Lombok function
- Video Fusion communication has become an inevitable trend of emergency command communication. How to realize it based on easyrtc?
- "Wechat cloud hosting" first practical battle | introduction to minimalist demo
- [xinliu-s6 new model +sa 3-star Xinghai] the new two-way server of the third generation chip was launched and the product was updated~
- How to improve the customer retention rate in the operation of independent stations? Customer segmentation is very important!
- [acnoi2022] not a structure, more like a structure
- Live broadcast appointment: growth of Mengxin Product Manager
- JUC personal simple notes
猜你喜欢

ZUCC_ Principles of compiling language and compilation_ Experiment 08 parsing LR parsing

Redis cluster data skew
![[micro services ~nacos] Nacos service providers and service consumers](/img/b7/47ecd6979ccfeb270261681d6130be.png)
[micro services ~nacos] Nacos service providers and service consumers

ZUCC_编译语言原理与编译_实验06 07 语法分析 LL 分析

【微服务~Nacos】Nacos服务提供者和服务消费者

ZUCC_ Principles of compiling language and compilation_ Experiment 02 fsharp Ocaml language

New technology practice, encapsulating the permission application library step by step with the activity results API

分布式 | 如何与 DBLE 进行“秘密通话”

新技术实战,一步步用Activity Results API封装权限申请库

2021-03-16 comp9021 class 9 notes
随机推荐
Shell basic operator -- arithmetic operator
饼状统计图,带有标注线,都可以自行设定其多种参数选项
After interviewing and tutoring several children, I found some problems!
【微服务~Nacos】Nacos服务提供者和服务消费者
Paper notes: multi label learning dm2l
uniapp 热更新后台管理
Ordinary token
ZUCC_ Principles of compiling language and compilation_ Experiment 05 regular expression, finite automata, lexical analysis
There was an error checking the latest version of pip
提高INSERT速度
String转Base64
Blue screen error UNMOUNTABLE boot volume of the solution
JS merge multiple objects and remove duplicates
5分钟,客服聊天处理技巧,炉火纯青
App Startup
Fund raising, trading and registration
Common CVM transcribes audio using virtual sound card
Increase insert speed
Review SGI STL secondary space configurator (internal storage pool) | notes for personal use
2021-03-11 comp9021 class 8 notes