openeuler/keepalived Docker Image
官方Keepalived Docker镜像,基于openEuler构建,提供Linux系统及基础设施的负载均衡与高可用能力,由openEuler CloudNative SIG维护。
Quick reference
-
The official Keepalived docker image.
-
Maintained by: https://gitee.com/openeuler/cloudnative.
-
Where to get help: https://gitee.com/openeuler/cloudnative, https://gitee.com/openeuler/community.
Keepalived | openEuler
Current Keepalived docker images are built on the https://repo.openeuler.org/. This repository is free to use and exempted from per-user rate limits.
Keepalived is a routing software written in C. The main goal of this project is to provide simple and robust facilities for loadbalancing and high-availability to Linux system and Linux based infrastructures.
Read more on https://www.keepalived.org/manpage.html.
Supported tags and respective Dockerfile links
The tag of each keepalived docker image is consist of the version of keepalived and the version of basic image. The details are as follows
| Tag | Currently | Architectures |
|---|---|---|
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/keepalived/2.4.3/24.03-lts-sp4/Dockerfile | keepalived 2.4.3 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/keepalived/2.3.4/24.03-lts-sp4/Dockerfile | keepalived 2.3.4 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/keepalived/2.3.4/24.03-lts-sp3/Dockerfile | keepalived 2.3.4 on openEuler 24.03-LTS-SP3 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/keepalived/2.3.3/24.03-lts-sp1/Dockerfile | Keepalived 2.3.3 on openEuler 24.03-LTS-SP1 | amd64, arm64 |
Usage
In this usage, users can select the corresponding {Tag} based on their requirements.
-
Pull the
openeuler/keepalivedimage from dockerbashdocker pull openeuler/keepalived:{Tag} -
Run with an interactive shell
Run your container with the
--privilegedflag to allow Keepalived to manage network interfaces and bind virtual IP address.docker run -it --privileged --rm openeuler/keepalived:{Tag} bashThis starts the container in an interactive shell with full privileges.
-
Check the actual network interface and subnet
Inside the keepalived container, install
iprouteif not already present, and then check the network interface details to identify the IP address and subnet mask of theeth0interface:dnf install -y iproute ip addr show eth0Note the IP address and subnet(e.g., 172.17.0.8/16) -- you will need this information for configuring Keepalived.
-
Prepare your keepalived configuration file
Create or edit the
keepalived.conffile. Here is an example configuration based on the subnet found above(172.17.0.0/16):global_defs { router_id my_keepalived } vrrp_instance VI_1 { state MASTER interface eth0 virtual_router_id 51 priority 100 advert_int 1 authentication { auth_type PASS auth_pass 123456 } virtual_ipaddress { 172.17.0.100/16 } }Make sure to adjust
interfaceandvirtual_ipaddressaccording to your enviroment. -
Start keepalived
Start Keepalived in the foreground with detailed logging to monitor it's opetation:
keepalived -n -l -d -f keepalived.confFlags explained:
-n: run in the foreground(no daemonize)-l: log output to the terminal-d: enable debug logging-f: specify the configuration file
Question and answering
If you have any questions or want to use some special features, please submit an issue or a pull request on https://gitee.com/openeuler/openeuler-docker-images.
openeuler 命名空间的其他可用镜像:
openeuler/openeuler
openeuler/open-webui
openeuler/openclaw
openeuler/opencode
openeuler/vllm-ascend
openeuler/kylin
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 keepalived 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务