当前位置:网站首页>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
边栏推荐
- Recycling of classes loaded by classloader
- Kubernetes cluster configuration dashboard service
- PostgreSQL queries [table field type] and [all series] in the library
- Redis basic knowledge, let's review it
- Do you know the five minute rule and the ten byte rule?
- Data fabric, next air outlet?
- NDK series (6): let's talk about the way and time to register JNI functions
- Among China's top ten national snacks, it is actually the first
- Recruiting talents, gbase high-end talent recruitment in progress
- Machine learning how to achieve epidemic visualization -- epidemic data analysis and prediction practice
猜你喜欢

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

View the dimensions of the list

Uniapp ---- detailed steps to obtain the longitude and latitude of the current position and other information (including applet)
![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]

How to obtain the subordinate / annotation information of KEGG channel

Eight ways to solve EMC and EMI conducted interference

Two dimensional array and operation

Win the bid! Nantah general gbase 8s won the bid for the 2022 database framework project of NARI Group

【单细胞高级绘图】07.KEGG富集结果展示

Analysis and recurrence of network security vulnerabilities
随机推荐
GB/T 41479-2022信息安全技术 网络数据处理安全要求 导图概览
C #, introductory tutorial -- debugging skills and logical error probe technology and source code when the program is running
[activity registration] User Group Xi'an - empowering enterprise growth with modern data architecture
Data analysis interview question summary
'global event bus' &' message subscription and Publishing '
Eight ways to solve EMC and EMI conducted interference
kubernetes之Deployment
图片批处理|必备小技能
Service current limiting and fusing of micro service architecture Sentinel
478-82(56、128、718、129)
Do you know the five minute rule and the ten byte rule?
(IROS 2022) 基于事件相机的单目视觉惯性里程计 / Event-based Monocular Visual Inertial Odometry
Digital signatures and Ca certificates
MDM数据质量应用说明
【软考软件评测师】2013综合知识历年真题
Why can ThreadLocal achieve thread isolation?
Go panic and recover
我来教你如何组装一个注册中心?
Post it notes -- 45 {packaging of the uniapp component picker, for data transmission and processing -- Based on the from custom packaging that will be released later}
Larkapi access credentials overview