当前位置:网站首页>Mysql5.7.38 start keepalived in the container
Mysql5.7.38 start keepalived in the container
2022-07-28 09:04:00 【CSDN Q & A】
The phenomenon and background of the problem
Ready to use docker start-up mysql5.7.38 The container of , Deploy in container keepalived, I tried a lot of methods, but they didn't work systemctl start-up keepalived
Problem related code , Do not paste screenshots
[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
Operation results and error reporting contents
[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
My solution ideas and tried methods
bash-4.2# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
The system version is this , I try to add this command online /usr/sbin/init, But there is no such thing , I have searched a lot on the Internet, but I haven't seen similar problems
What I want to achieve
Normal in mysql Start in a container keepalived
边栏推荐
- 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}
- VS2015使用dumpbin 查看库的导出函数符号
- PHP Basics - PHP uses mysqli
- Eight ways to solve EMC and EMI conducted interference
- ES查询索引字段的分词结果
- Day112. Shangyitong: Mobile verification code login function
- Marketing play is changeable, and understanding the rules is the key!
- Why setting application.targetframerate doesn't work
- When I use MySQL CDC, there are 100 million pieces of data in the source table. In the full volume phase, when I synchronize 10 million, I stop, and then pass
- Go synergy
猜你喜欢

一年涨薪三次背后的秘密

MDM数据质量应用说明

Bluetooth technology | it is reported that apple, meta and other manufacturers will promote new wearable devices, and Bluetooth will help the development of intelligent wearable devices

Huid learning 7: Hudi and Flink integration

TXT text file storage

台大林轩田《机器学习基石》习题解答和代码实现 | 【你值得拥有】

1w5 words to introduce those technical solutions of distributed system in detail

分布式系统架构理论与组件

Line generation (matrix)

说透缓存一致性与内存屏障
随机推荐
Kubernetes data persistence scheme
Div tags and span Tags
DIY system home page, your personalized needs PRO system to meet!
Hcip day 9_ BGP experiment
Solution: indexerror: index 13 is out of bounds for dimension 0 with size 13
C #, introductory tutorial -- debugging skills and logical error probe technology and source code when the program is running
Service current limiting and fusing of micro service architecture Sentinel
Smart software completed round C financing, making Bi truly "inclusive"
Flink Window&Time 原理
Detailed explanation of switch link aggregation [Huawei ENSP]
SQL injection - pre Foundation
In addition to exporting the incremental data captured by Oracle golden gate to Oracle, where can it be exported? Can be similar
This flick SQL timestamp_ Can ltz be used in create DDL
Competition: diabetes genetic risk detection challenge (iFLYTEK)
Setting of parameter configuration tool for wireless vibrating wire collector
PHP Basics - PHP uses PDO
实现批量数据增强 | keras ImageDataGenerator使用
[advanced drawing of single cell] 07. Display of KEGG enrichment results
说透缓存一致性与内存屏障
Warehouse of multiple backbone versions of yolov5