专属域名
文档搜索
提交工单
轩辕助手
Run助手
返回顶部
快速返回页面顶部
收起
收起工具栏

seataio/seata-server Docker 镜像 - 轩辕镜像

seata-server
seataio/seata-server
这是一款专为微服务架构打造的分布式事务解决方案,兼具高性能与易用性核心特性。在微服务架构中,跨服务事务的数据一致性管理常面临复杂挑战,该方案通过优化底层处理逻辑实现低延迟、高吞吐量的高性能表现,同时简化集成流程并提供直观操作接口,大幅降低开发者的学习与使用门槛,助力技术团队高效应对分布式环境下的事务协调需求,切实保障业务数据的准确性及系统运行的稳定性。
91 收藏0 次下载activeseataio镜像
🚀轩辕镜像专业版更稳定💎一键安装 Docker 配置镜像源
版本下载
🚀轩辕镜像专业版更稳定💎一键安装 Docker 配置镜像源

Seata Server

What is Seata

A distributed transaction solution with high performance and ease to use for microservices architecture.

Supported tags

The seata-server images are based on openjdk8

Quick Start

Start a seata-server instance
bash
$ docker run -p 8091:8091 -p 7091:7091 --name=seata-server --restart=always  -d seataio/seata-server:latest
Use custom configuration file
bash
$ docker run --name seata-server \
        -p 8091:8091 \
        -p 7091:7091 \
        -e SEATA_CONFIG_NAME=file:/root/seata-config/registry \
        -v /PATH/TO/CONFIG_FILE:/root/seata-config  \
        seataio/seata-server
Specify server IP
bash
$ docker run --name seata-server \
        -p 8091:8091 \
        -p 7091:7091 \
        -e SEATA_IP=192.168.1.1 \
        seataio/seata-server

More information about Seata could be found in Document

Docker compose

Example of docker-compose.yaml

yaml
version: "3.1"

services:

  seata-server:
    image: seataio/seata-server:latest
    hostname: seata-server
    ports:
      - 8091:8091
      - 7091:7091
    environment:
      - SEATA_PORT=8091
    expose:
      - 8091
      - 7091

Container shell access and viewing logs

bash
$ docker exec -it seata-server sh
bash
$ docker logs -f seata-server

Using custom configuration file

The default configuration could be found under path /seata-server/resources, suggest that put your custom configuration under other directories. And the environment variableSEATA_CONFIG_NAME is required when use custom configuration, and the value must be started with file: like file:/root/seata-config/registry:

bash
$ docker run --name seata-server \
        -p 8091:8091 \
        -p 7091:7091 \
        -e SEATA_CONFIG_NAME=file:/root/seata-config/registry \
        -v /PATH/TO/CONFIG_FILE:/root/seata-config  \
        seataio/seata-server

Environment Variables

You can modify configuration of seata-server by the environment variables like this:

  • SEATA_IP

The variable is optional, specifies registry IP instead of the container IP in registry center like eureka or others.

  • SEATA_PORT

The variable is optional, specifies seata-server port, default is 8091

  • STORE_MODE

The variable is optional, specifies the log store mode of seata-server, support db and file, default is file.

  • SERVER_NODE

The variable is optional, specifies the seata-server node ID, like 1,2,3..., default is 1

  • SEATA_ENV

The variable is optional, specifies the seata-server environment, like dev, test etc. Then server will find file like registry-dev.conf under the configuration path when start.

  • SEATA_CONFIG_NAME

The variable is optional, specifies the configuration file path, like the file:/root/registry, will load file/root/registry.conf as configuration.

Quick Reference

Where to get help

Seata Repository | Seata Document | *** Seata | Dingtalk Group

Where to file issues

[***]



什么是Seata

Seata 是高性能、易用的微服务架构的分布式事务解决方案.

快速开始

启动seata-server实例
bash
$ docker run --name seata-server -p 8091:8091 -p 7091:7091 seataio/seata-server:latest
指定自定义配置文件启动
bash
$ docker run --name seata-server \
        -p 8091:8091 \
        -p 7091:7091 \
        -e SEATA_CONFIG_NAME=file:/root/seata-config/registry \
        -v /PATH/TO/CONFIG_FILE:/root/seata-config  \
        seataio/seata-server
指定seata-server IP 启动
bash
$ docker run --name seata-server \
        -p 8091:8091 \
        -p 7091:7091 \
        -e SEATA_IP=192.168.1.1 \
        seataio/seata-server

更多详细内容可以参考官方文档

Docker compose 启动

docker-compose.yaml 示例

yaml
version: "3.1"

services:

  seata-server:
    image: seataio/seata-server:latest
    hostname: seata-server
    ports:
      - 8091:8091
      - 7091:7091
    environment:
      - SEATA_PORT=8091
    expose:
      - 8091
      - 7091

容器命令行及查看日志

bash
$ docker exec -it seata-server sh
bash
$ docker logs -f seata-server

使用自定义配置文件

The default configuration could be found under path /seata-server/resources, suggest that put your custom configuration under other directories. And the environment variableSEATA_CONFIG_NAME is required when use custom configuration, and the value must be started with file: like file:/root/seata-config/registry:

默认的配置文件路径为 /seata-server/resources,建议将自定义配置文件放到其他目录下; 使用自定义配置文件时必须指定环境变量 SEATA_CONFIG_NAME,并且环境变量的值需要以file:开始, 如: seata-config/registry

bash
$ docker run --name seata-server \
        -p 8091:8091 \
        -p 7091:7091 \
        -e SEATA_CONFIG_NAME=file:/root/seata-config/registry \
        -v /PATH/TO/CONFIG_FILE:/root/seata-config  \
        seataio/seata-server

环境变量

seata-server 支持以下环境变量:

  • SEATA_IP

可选,指定seata-server启动的IP,该IP用于向注册中心注册时使用,如eureka等.

  • SEATA_PORT

可选,指定seata-server启动的端口,默认为 8091

  • STORE_MODE

可选,指定seata-server的事务日志存储方式,支持db 和 file, 默认是 file.

  • SERVER_NODE

可选,用于指定seata-server节点ID, 如 1,2,3..., 默认为 1

  • SEATA_ENV

可选,指定 seata-server 运行环境, 如 dev, test 等. 服务启动时会使用 registry-dev.conf 这样的配置.

  • SEATA_CONFIG_NAME

The variable is optional, specifies the configuration file path, like the file:/root/registry, will load file/root/registry.conf as configuration. 可选, 指定配置文件位置, 如 file:/root/registry, 将会加载 /root/registry.conf 作为配置文件.

参考

联系我们

Seata 仓库 | Seata 文档 | *** Seata | 钉钉群

提交反馈

[***]

查看更多 seata-server 相关镜像 →
apache/seata-server logo
apache/seata-server
by The Apache Software Foundation
Apache Seata是一款开源的分布式事务解决方案,致力于为微服务架构提供高性能、简单易用的分布式事务服务,支持AT、TCC、SAGA和XA四种事务模式,能够帮助开发者快速解决分布式系统中的数据一致性问题,具备良好的兼容性与可扩展性,适用于各类微服务场景,由Apache软件基金会孵化并维护,拥有活跃的社区支持。
750K+ pulls
上次更新:4 天前

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

登录仓库拉取

通过 Docker 登录认证访问私有仓库

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

专属域名拉取

无需登录使用专属域名

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

轩辕镜像免费版与专业版有什么区别?

免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。

轩辕镜像支持哪些镜像仓库?

专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。

流量耗尽错误提示

当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

oldzhang的头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
seataio/seata-server
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
提交工单
免费获取在线技术支持请 提交工单,官方QQ群:13763429 。
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
免费获取在线技术支持请提交工单,官方QQ群: 。
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
商务:17300950906
©2024-2026 源码跳动
商务合作电话:17300950906Copyright © 2024-2025 杭州源码跳动科技有限公司. All rights reserved.
轩辕镜像 官方专业版 Logo
轩辕镜像官方专业版
首页个人中心搜索镜像
交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 13763429