当前位置:网站首页>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
边栏推荐
- Sentry log management system installation and use tutorial
- 创建线程的3种方式
- Slice function of JS handwriting function (thoroughly understand the header but not the footer)
- Go waitgroup and defer
- 站在大佬的肩膀上,你可以看的更远
- Service current limiting and fusing of micro service architecture Sentinel
- There is a bug in installing CONDA environment
- KEGG通路的从属/注释信息如何获取
- 台大林轩田《机器学习基石》习题解答和代码实现 | 【你值得拥有】
- Ciou loss
猜你喜欢

阿里技术四面+交叉面+HR面,成功拿到offer,双非本科进不了大厂?

JS inheritance method

49 opencv deep analysis profile

A new method of exposing services in kubernetes clusters

VS2015使用dumpbin 查看库的导出函数符号

Day112. Shangyitong: Mobile verification code login function

Solution: indexerror: index 13 is out of bounds for dimension 0 with size 13

实现批量数据增强 | keras ImageDataGenerator使用

Sentinel

Ciou loss
随机推荐
SQL server time field sorting
Vs2015 use dumpbin to view the exported function symbols of the library
Detailed explanation of MSTP protocol for layer 3 switch configuration [Huawei ENSP experiment]
训练一个自己的分类 | 【包教包会,数据都准备好了】
In addition to exporting the incremental data captured by Oracle golden gate to Oracle, where can it be exported? Can be similar
XMIND Zen installation tutorial
修改虚拟机IP地址
Dry goods semantic web, Web3.0, Web3, metauniverse, these concepts are still confused? (top)
Solution: indexerror: index 13 is out of bounds for dimension 0 with size 13
TXT文本文件存储
Go synergy
mysql5.7.38容器里启动keepalived
JS inheritance method
Round C financing has been completed! Smart software leads domestic Bi ecological empowerment, and products and services are a step forward
中国地图省>市>级>区>镇>村5级联动下载【2019和2021】
JSON file storage
Data fabric, next air outlet?
Redis basic knowledge, let's review it
PHP Basics - PHP uses mysqli
Detailed explanation of the basic use of express, body parse and express art template modules (use, route, path matching, response method, managed static files, official website)