用于Azure SQL Server到PostgreSQL迁移的PGLoader镜像,包含对连接Azure SQL问题#1324的修复。
下载次数: 0状态:社区镜像维护者:jahan9仓库类型:镜像最近更新:
PGLoader 镜像(Azure SQL Server迁移专用版)
镜像概述
本镜像为PGLoader工具的定制版本,专门针对从Azure SQL Server到PostgreSQL的数据迁移场景,解决了官方PGLoader中存在的「无法连接Azure SQL」问题(对应GitHub Issue https://github.com/dimitri/pgloader/issues/1324)。
核心功能与特性
- 迁移场景适配:专注于Azure SQL Server到PostgreSQL的数据库迁移任务
- 连接问题修复:集成对Azure SQL Server连接问题的修复,解决原PGLoader中无法连接Azure SQL的问题
- 基于PGLoader:保留PGLoader工具的核心数据迁移能力,支持表结构转换、数据同步等功能
适用场景
- 需要将数据从Azure SQL Server迁移至PostgreSQL的场景
- 使用官方PGLoader时遇到Azure SQL连接问题(如认证失败、连接超时等)的用户
- 数据库迁移项目中需确保Azure SQL Server与PostgreSQL间数据正确同步的场景
使用方法
镜像获取
bashdocker pull docker.xuanyuan.run/jahangiranwari/pgloader
基本使用方式
通过挂载迁移配置文件或直接在命令行指定迁移参数运行容器:
1. 使用配置文件迁移
创建迁移配置文件(如migration.load),内容示例:
LOAD DATABASE FROM docker.xuanyuan.run/mssql://username:password@azure-sql-server-name.database.windows.net:1433/dbname?sslmode=require INTO postgresql://pguser:pgpassword@postgresql-host:5432/pgdbname WITH include drop, create tables, create indexes, reset sequences CAST type datetime to timestamp with time zone drop default drop not null using zero-dates-to-null, type datetime2 to timestamp with time zone drop default drop not null using zero-dates-to-null;
运行容器并挂载配置文件:
bashdocker run -v /path/to/migration.load:/migration.load docker.xuanyuan.run/jahangiranwari/pgloader pgloader /migration.load
2. 命令行直接指定参数
bashdocker run docker.xuanyuan.run/jahangiranwari/pgloader pgloader "mssql://username:password@azure-sql-server-name.database.windows.net:1433/dbname?sslmode=require" "postgresql://pguser:pgpassword@postgresql-host:5432/pgdbname"
镜像来源
- 源代码仓库:https://github.com/jahangiranwari/pgloader
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
docker pull jahan9/pgloader:<标签>
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务