怀疑一切与信任一切是同样的错误,能得乎其中方为正道。——乔叟
https://hub.docker.com/r/seataio/seata-server
命令:
代码语言:javascript复制docker run --name seata-server -p 8091:8091 -p 7091:7091 seataio/seata-server:latest
自定义配置文件:
代码语言:javascript复制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
指定ip
docker run --name seata-server
-p 8091:8091
-p 7091:7091
-e SEATA_IP=192.168.1.1
seataio/seata-server
docker-compose.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