
cobra1978/keepalived to provide a minimal footprint and maximum security.
stdout/stderr for seamless integration with docker logs.Perfect for standard Master/Backup setups. Configuration is generated automatically at startup.
yamlservices: keepalived: image: ghcr.io/your-username/keepalived:latest cap_add: - NET_ADMIN - NET_RAW network_mode: host # Required for VRRP environment: - STATE=MASTER - INTERFACE=eth0 - VIRTUAL_IP=192.168.1.100/24 - PRIORITY=101 - ROUTER_ID=51
If you need complex features like Unicast Peers, multiple VRRP instances, or health-check scripts, mount your own configuration.
yamlservices: keepalived: image: ghcr.io/your-username/keepalived:latest cap_add: - NET_ADMIN - NET_RAW network_mode: host volumes: - ./my-keepalived.conf:/etc/keepalived/keepalived.conf:ro
| Variable | Description | Default |
|---|---|---|
STATE | Initial VRRP state (MASTER or BACKUP) | MASTER |
INTERFACE | Network interface to bind the VRRP instance | eth0 |
VIRTUAL_IP | The VIP address (CIDR format recommended) | 192.168.1.1 |
PRIORITY | VRRP priority value (Higher value = Higher priority) | 100 |
ROUTER_ID | Unique VRRP Router ID (0-255) | 51 |
bashdocker build -t my-keepalived .
The image is built and pushed automatically on every tag or push to main. The build process uses multi-stage builds to ensure the final image contains no build-time dependencies.
bashdocker logs -f keepalived
bashdocker exec -it keepalived cat /etc/keepalived/keepalived.conf
bashdocker exec -it keepalived ip addr show
This project is licensed under the MIT License - see the LICENSE file for details.


manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务