当前位置:网站首页>mysql5.7.38容器里启动keepalived
mysql5.7.38容器里启动keepalived
2022-07-28 08:02:00 【CSDN问答】
问题遇到的现象和发生背景
准备用docker启动mysql5.7.38的容器,在容器里部署keepalived,我试了很多办法都没法用systemctl启动keepalived
问题相关代码,请勿粘贴截图
[root@node1 mysql]#
a
docker run -d --net host --name mysql-keepalived --privileged=true \
-v /etc/localtime:/etc/localtime
-v /root/mysql/data:/var/lib/mysql
-v /root/mysql/log:/var/log/mysql
-v /root/mysql/my.cnf:/etc/my.cnf
-e MYSQL_ROOT_PASSWORD='mysql@2022'
mysql:5.7.38 /usr/sbin/init
运行结果及报错内容
[root@node1 mysql]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e7027be136b6 mysql:5.7.38 "docker-entrypoint.s…" 4 seconds ago Exited (1) 3 seconds ago mysql-keepalived
[root@node1 mysql]# docker logs -f mysql-keepalived
/usr/local/bin/docker-entrypoint.sh: line 400: /usr/sbin/init: No such file or directory
我的解答思路和尝试过的方法
bash-4.2# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
系统版本是这个,我尝试网上的方法添加这个命令/usr/sbin/init,但是并没有这个东西,网上查找了很多都没看见类似的问题
我想要达到的结果
正常在mysql容器里启动keepalived
边栏推荐
- 一年涨薪三次背后的秘密
- 谷歌 Material Design 的文本框为什么没人用?
- Hyperlink label
- 解决:IndexError: index 13 is out of bounds for dimension 0 with size 13
- Detailed explanation of MSTP protocol for layer 3 switch configuration [Huawei ENSP experiment]
- After reading these 12 interview questions, the new media operation post is yours
- How to import and export Youxuan database
- ES查询索引字段的分词结果
- 第2章-2 计算分段函数[1]
- Uniapp ---- detailed steps to obtain the longitude and latitude of the current position and other information (including applet)
猜你喜欢

Ciou loss

Competition: diabetes genetic risk detection challenge (iFLYTEK)
![Detailed explanation of MSTP protocol for layer 3 switch configuration [Huawei ENSP experiment]](/img/97/6c3662ef36b02bc42eec95abaa6bc5.png)
Detailed explanation of MSTP protocol for layer 3 switch configuration [Huawei ENSP experiment]

Gb/t 41479-2022 information security technology network data processing security requirements map overview

谷歌 Material Design 的文本框为什么没人用?

478-82(56、128、718、129)

Eight ways to solve EMC and EMI conducted interference

Alibaba internal interview materials

Two dimensional array and operation

KEGG通路的从属/注释信息如何获取
随机推荐
Network interface network crystal head RJ45, Poe interface definition line sequence
Why is the text box of Google material design not used?
为什么 ThreadLocal 可以做到线程隔离?
Basic syntax of jquey
Feign调用异常[Running, pool size = 10, active threads = 10, queued tasks = 0, completed tasks = n]
置顶各大平台,22版面试核心知识解析笔记,强势上榜
49 opencv deep analysis profile
Introduction of functions in C language (blood Book 20000 words!!!)
Gbase 8A MPP and Galaxy Kirin (x86 version) complete deep adaptation
What are the main uses of digital factory management system
Prometheus TSDB analysis
[advanced drawing of single cell] 07. Display of KEGG enrichment results
Data analysis interview question summary
Kubernetes cluster configuration serviceaccount
How can MySQL query judge whether multiple field values exist at the same time
象棋机器人夹伤7岁男孩手指,软件测试工程师的锅?我笑了。。。
What content does the new version of network security level protection evaluation report template contain? Where can I find it?
PHP Basics - PHP uses mysqli
Mongodb (compare relational database, cloud database, common command line, tutorial)
I am a 27 year old technical manager, whose income is too high, and my heart is in a panic