
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
!InsightEdge logo
Smart DIH is a distributed in-memory Digital Integration Hub (DIH), with unparalleled low-latency, high-performance and scale that aggregates and offloads from your multiple back-end systems of record and data stores on-premise and in the cloud. With a unified API layer, you can decouple the digital applications from your disparate systems of record to increase agility and ensure always-on services.
Benefits & Features:
To learn more about GigaSpaces products, visit the website.
To test the Smart DIH Enterprise Docker image, run the following in your command line to display a help screen with all the available commands:
docker run gigaspaces/smart-dih-enterprise --help
For example, the version command prints version information:
docker run gigaspaces/smart-dih-enterprise version
The Smart DIH Enterprise Docker image utilizes GigaSpaces' command line interface (CLI). To learn more about the command line interface, see the CLI documentation, or use the --help option.
The Smart DIH Enterprise image requires a license key to run, which can be provided using the GS_LICENSE environment variable. You can use the tryme license, which enables you to use the full Smart DIH product for 24 hours (and then terminates the image), or you can get a longer evaluation license.
The simplest and fastest way to start working with Smart DIH Enterprise is to get a single instance up and running on your local machine. After the instance is initiated, you can start exploring the available features and capabilities.
To run a single host on your machine:
docker run --name test -it -e GS_LICENSE=tryme -p 8090:8090 -p 8099:8099 gigaspaces/smart-dih-enterprise
When running the Smart DIH Enterprise Docker image without arguments, a host is automatically started with the following components:
8090) Learn more8099) Learn moreNote: These ports are mapped to your host, so you can access them.
Docker runs containers in a bridge network by default. You can use any of the options described below to enable a client to connect to the Space.
By default, the client uses the host network interface. You can configure the client to use the Docker bridge network interface (the IP address is usually 172.17.0.x). Use the GS_NIC_ADDRESS environment variable to enable the client to contact and interact with the Space.
NOTE: This only works for clients that reside on the same host as the Space. The Docker bridge network is inaccessible to other hosts.
Docker containers that reside on the same host use the same bridge network. If the client is in a Processing Unit, you can run it via another Docker container with the pu run command.
NOTE: This only works for clients that reside on the same host as the Space. Docker containers on other hosts will use a different bridge network.
Docker can run containers on the host network using the --net=host option with the docker run command. In this case, the client can connect and interact with the Space without additional configuration.
NOTE: Docker only supports the --net=host option on Linux hosts.
By default, the GigaSpaces communication protocol (LRMI) uses the same network interface for both binding and publishing. You can modify this, using the GS_PUBLIC_HOST enviromnent variable to instruct Smart DIH Enterprise to publish itself using a different network address, for example the host's network address. In this case, you'll have to expose the ports listed in the Ports section from the Docker container to the host. For example:
docker run --name test -it -e GS_LICENSE=tryme -e GS_PUBLIC_HOST=<your-host-ip-or-name> -p 4174:4174 -p 8200-8300:8200-8300 gigaspaces/smart-dih-enterprise
When running Smart DIH Enterprise in Docker containers on multiple hosts, you need to either configure GS_PUBLIC_HOST or use the --net=host option as described above, so that containers on different hosts can interact with each other.
The GS_PUBLIC_HOST environment variable complies with common practices of Docker usage, and maintains image isolation. However, as per the Docker documentation, to get optimal performance it is recommended to use the --net=host option, which uses the host network and removes the extra network hop. The Smart DIH Docker image supports both options, so choose the one that best suits your needs.
When running Smart DIH Enterprise on multiple hosts, you can configure the GigaSpaces Manager Server IP address in your network.
GS_MANAGER_SERVERS=host1,host2,host3 by default is the local manager.
The Smart DIH Enterprise Docker image uses the ports described in the table below. You can change each port using the respective environment variable, or map it to a different port using the -p option in docker run. For example, -p 5174:4174 maps the lookup discovery port to a different port, but maintains the same port within the container.
| Environment Variable | Default Value | Description |
|---|---|---|
| GS_MULTICAST_LOOKUP_PORT | 4174 | Lookup discovery port. (learn more) |
| GS_LRMI_PORT | 8200-8300 | Network protocol port range. (learn more) |
| GS_MANAGER_REST_PORT | 8090 | REST Manager API port (learn more) |
| GS_WEBUI_PORT | 8099 | Web Managment Console port (learn more) |
| GS_WEBSTER_HTTP_PORT | 8199 | Internal web service used as part of the application deployment process. |
| GS_RMI_REGISTRY_PORT | - | Used to communicate with the client application. |
| GS_ZOOKEEPER_CLIENT_PORT | 2181 | Used for the Zookeeper client. |
| GS_MANAGER_ZOOKEEPER_DISCOVERY_PORT | 2888 | Used for the Zookeeper discovery ports. |
| GS_MANAGER_ZOOKEEPER_LEADER_ELECTION_PORT | 3888 | Used for the Zookeeper leader election port. |
The Smart DIH Enterprise Docker image utilizes GigaSpaces' command line interface (CLI). Any arguments following the image name are passed to the command line.
If no arguments are specified after the image, the default host run-agent --auto command will be run.
To learn more about the command line interface, refer to the CLI documentation, or use the --help option.
This Smart DIH Enterprise Docker image is based on the official https://hub.docker.com/_/openjdk/ image, and uses Java version 8. To use a different Java version, you have to build a new image using the JAVA_TAG build argument. For example:
docker build --build-arg JAVA_TAG=9 -t gigaspaces/smart-dih-enterprise:openjdk-9 .
If you're not sure which versions are available, refer to the https://hub.docker.com/r/library/openjdk/tags/ page.
You can also build from a different base image, or even create your own, using the JAVA_IMAGE build argument (e.g. --build-arg JAVA_IMAGE=...)
All logs are stored in opt/gigaspaces/logs within the container. To access the logs, you can do one of the following:
-v option in your docker run command to map this to a folder on your host.docker cp command to copy the files from a Docker instance to a location on your host.To mount the directory to get the logs, use the following command:
-v c:/gigaspaces/test/logs:/opt/gigaspaces/logs
To copy logs from a running instance, use the following command:
docker cp containerId:/opt/gigaspaces/logs .
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务