sudo docker run -it --rm
-v synapse-data:/data \ # 挂载一个卷,将容器内的 /data 目录映射到 synapse-data 卷
-e SYNAPSE_SERVER_NAME=10.211.55.6 \ # 设置 Synapse 服务器的公共主机名
-e SYNAPSE_REPORT_STATS=no \ # 禁用匿名统计报告
-e SYNAPSE_HTTP_PORT=8008 \ # 设置 Synapse 监听的 HTTP 端口为 8008
-e SYNAPSE_CONFIG_DIR=/data \ # 设置配置文件的存储位置为 /data
-e SYNAPSE_DATA_DIR=/data \ # 设置持久数据的存储位置为 /data
-e TZ=Asia/Shanghai \ # 设置容器的时区为亚洲/上海
-e UID=1000 \ # 设置运行 Synapse 的用户 ID
-e GID=1000 \ # 设置运行 Synapse 的用户组 ID
matrixdotorg/synapse:latest generate # 运行最新版本的 matrixdotorg/synapse 镜像,并执行 generate 命令来生成配置文件
docker: invalid reference format
报错如下
Run ‘docker run --help’ for more information
-e: command not found
-e: command not found
-e: command not found
-e: command not found
-e: command not found
-e: command not found
-e: command not found
-e: command not found
-bash: matrixdotorg/synapse:latest: No such file or directory
1panel版本
社区版
v2.0.1