keepalived

openeuler/keepalived Docker Image

官方Keepalived Docker镜像,基于openEuler构建,提供Linux系统及基础设施的负载均衡与高可用能力,由openEuler CloudNative SIG维护。

下载次数: 0状态:社区镜像维护者:openEuler 官方容器镜像仓库类型:镜像最近更新:1 个月前
下载命令
点击查看

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

TagCurrentlyArchitectures
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/keepalived/2.4.3/24.03-lts-sp4/Dockerfilekeepalived 2.4.3 on openEuler 24.03-LTS-SP4amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/keepalived/2.3.4/24.03-lts-sp4/Dockerfilekeepalived 2.3.4 on openEuler 24.03-LTS-SP4amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/keepalived/2.3.4/24.03-lts-sp3/Dockerfilekeepalived 2.3.4 on openEuler 24.03-LTS-SP3amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/keepalived/2.3.3/24.03-lts-sp1/DockerfileKeepalived 2.3.3 on openEuler 24.03-LTS-SP1amd64, arm64

Usage

In this usage, users can select the corresponding {Tag} based on their requirements.

  • Pull the openeuler/keepalived image from docker

    bash
    docker pull openeuler/keepalived:{Tag}
    
  • Run with an interactive shell

    Run your container with the --privileged flag to allow Keepalived to manage network interfaces and bind virtual IP address.

    docker run -it --privileged --rm openeuler/keepalived:{Tag} bash
    

    This starts the container in an interactive shell with full privileges.

  • Check the actual network interface and subnet

    Inside the keepalived container, install iproute if not already present, and then check the network interface details to identify the IP address and subnet mask of the eth0 interface:

    dnf install -y iproute
    ip addr show eth0
    

    Note 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.conf file. 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 interface and virtual_ipaddress according to your enviroment.

  • Start keepalived

    Start Keepalived in the foreground with detailed logging to monitor it's opetation:

    keepalived -n -l -d -f keepalived.conf
    

    Flags 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.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 keepalived 镜像标签

docker pull docker.xuanyuan.run/openeuler/keepalived:<标签>

DockerHub 原生拉取命令

docker pull openeuler/keepalived:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告