当前位置:网站首页>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
边栏推荐
- Network interface network crystal head RJ45, Poe interface definition line sequence
- TXT文本文件存储
- 剑指offer
- How can MySQL query judge whether multiple field values exist at the same time
- Vk1620 temperature controller / smart meter LED digital display driver chip 3/4-wire interface with built-in RC oscillator to provide technical support
- 分布式系统架构理论与组件
- CSV文件存储
- This flick SQL timestamp_ Can ltz be used in create DDL
- Bash shell interaction free
- 公众号简介
猜你喜欢

说透缓存一致性与内存屏障

TXT文本文件存储

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

golang 协程的实现原理

C #, introductory tutorial -- debugging skills and logical error probe technology and source code when the program is running

CSV文件存储

Argocd Web UI loading is slow? A trick to teach you to solve

Different HR labels

Smart software completed round C financing, making Bi truly "inclusive"

台大林轩田《机器学习基石》习题解答和代码实现 | 【你值得拥有】
随机推荐
NPM and yarn use (official website, installation, command line, uploading your own package, detailed explanation of package version number, updating and uninstalling package, viewing all versions, equ
修改虚拟机IP地址
Three ways to create threads
Bash shell interaction free
linux初始化mysql时报错 FATAL ERROR: Could not find my-default.cnf
Setting of parameter configuration tool for wireless vibrating wire collector
Mobaxtermsession synchronization
(IROS 2022) 基于事件相机的单目视觉惯性里程计 / Event-based Monocular Visual Inertial Odometry
实现批量数据增强 | keras ImageDataGenerator使用
golang 协程的实现原理
There is a bug in installing CONDA environment
Customer first | domestic Bi leader, smart software completes round C financing
置顶各大平台,22版面试核心知识解析笔记,强势上榜
Prometheus TSDB analysis
[opencv] generate transparent PNG image
Kubernetes cluster configuration serviceaccount
1w5字详细介绍分布式系统的那些技术方案
VS2015使用dumpbin 查看库的导出函数符号
公众号简介
Kubernetes data persistence scheme