
lensorai/docker-daheng-sdkMinimal Docker image containing the Daheng Galaxy camera SDK (GiGE/U3 variant) for containerized camera driver functionality. This image is designed to be used as a base image or copied into other images to minimize bloat while providing full camera driver support.
The Daheng Galaxy SDK enables communication with GiGE Vision and USB3 Vision cameras. This repository packages the SDK in a lightweight Docker image using a multi-stage build strategy that strips unnecessary build artifacts, resulting in a minimal runtime footprint.
.versions configurationbashdocker pull lensorai/docker-daheng-sdk:latest
Available tags:
latest - Latest stable SDK version2.4.2503 - Specific version (or any version in .versions)To use the Galaxy SDK in your own Docker image, copy the necessary libraries and configuration from this base image:
dockerfileFROM lensorai/docker-daheng-sdk:latest AS sdk-base FROM ubuntu:24.04 # Copy Galaxy SDK libraries COPY --from=sdk-base /usr/lib/GxGVTL.cti /usr/lib/ COPY --from=sdk-base /usr/lib/GxU3VTL.cti /usr/lib/ COPY --from=sdk-base /usr/lib/libgxiapi.so /usr/lib/ # Copy security limits configuration COPY --from=sdk-base /etc/security/limits.d/galaxy-limits.conf /etc/security/limits.d/ # Your application code COPY . /app WORKDIR /app CMD ["./your-app"]
bashcd balena/ docker build -t daheng-sdk:local .
To build a specific SDK version:
bashdocker build \ --build-arg GALAXY_SDK_VERSION="Galaxy_Linux-x86_Gige-U3_32bits-64bits_2.4.2503.9201" \ -t daheng-sdk:2.4.2503 \ balena/
The final image contains only the minimal set of libraries required for camera communication:
| File | Purpose |
|---|---|
libgxiapi.so | Main Galaxy SDK API library for camera control and image acquisition |
GxGVTL.cti | GigE Vision Transport Layer for network-based cameras |
GxU3VTL.cti | USB3 Vision Transport Layer for USB-connected cameras |
galaxy-limits.conf | Security limits configuration for camera resource access |
Build artifacts removed:
Galaxy_camera.run)unzip)Build Stage (base)
.zipunzip)ldconfig)Final Stage (final)
balena/Dockerfile/)files/ directory (pre-staged .zip archives)Configured versions are listed in .versions (one per line):
Galaxy_Linux-x86_Gige-U3_32bits-64bits_2.4.2503.9201
.zip file in files/.versions:
(First line becomesGalaxy_Linux-x86_Gige-U3_32bits-64bits_2.5.0000.0000 # New version (will be tagged as latest) Galaxy_Linux-x86_Gige-U3_32bits-64bits_2.4.2503.9201 # Previous version
latest tag)Each version receives three tags:
2.4.2503) - Extracted from version string via regexlatest - Only the first version in .versions gets this tagThis repository uses Docker Hub automated builds with custom hooks:
balena/hooks/build and balena/hooks/pushdevelopment or main branchDocker Hub repository settings:
Dockerfile Path: balena/Dockerfile Build Context: / (root of repository)
The build hook:
.versions filelatestThe push hook:
linux/amd64 (locked for camera SDK binary compatibility)linux/amd64 host or QEMU emulationThe Galaxy SDK installer is interactive. Responses are automated via:
bashprintf "\nY\nEn\n" | ./Galaxy_camera.run
\n - Skip initial promptY - Accept license agreementEn - Select English language⚠️ Note: If updating the SDK, verify these prompts haven't changed with the new version.
The Galaxy SDK requires elevated resource limits. The galaxy-limits.conf file sets:
This file is copied to /etc/security/limits.d/ in the final image.
The three library files have specific purposes in the Galaxy SDK:
libgxiapi.so - Core API for:
GxGVTL.cti - Enables communication with:
GxU3VTL.cti - Enables communication with:
Verify libraries are copied correctly in your image:
bashdocker run <image> ls -la /usr/lib/libgxiapi.so /usr/lib/Gx*VTL.cti
Check security limits are configured:
bashdocker run <image> cat /etc/security/limits.d/galaxy-limits.conf
For GigE cameras, ensure network access:
bashdocker run --network host <image> # Run with host network if needed
If the build fails during Galaxy_camera.run execution:
.zip file in files/ matches the GALAXY_SDK_VERSION ARGDebug by inspecting the build stage:
bash# Temporarily modify Dockerfile to keep build stage docker build \ --target base \ -t daheng-sdk:debug-base \ balena/ docker run daheng-sdk:debug-base du -sh /usr/lib/*
Build the image locally:
bashcd balena/ docker build -t daheng-sdk:test .
Test camera access:
bashdocker run --rm daheng-sdk:test ls -la /usr/lib/libgxiapi.so
To add dependencies or modify the build process:
balena/Dockerfiledocker buildIf you need additional runtime libraries from the SDK:
apt-getCOPY --from=base command in the final stage.github/copilot-instructions.md with the new library purposeThe Galaxy SDK is proprietary software from Daheng. This Docker image distribution is provided as-is for integration with Galaxy SDK-compatible applications. See Daheng's terms for SDK licensing.
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务