Docker image for sqlpackage 19.1.
Available on Docker Hub.
To run sqlpackage:
docker run -it --rm markhobson/sqlpackage
To import bacpac file /backups/db.bacpac
to local database db
with username sa
and password password
:
docker run -it --rm -v /backups:/data --network=host markhobson/sqlpackage \
/a:Import /tsn:tcp:localhost /tdn:db /tu:sa /tp:password /sf:/data/db.bacpac
To export local database db
with username sa
and password password
to bacpac file /backups/db.bacpac
:
docker run -it --rm -v /backups:/data --network=host markhobson/sqlpackage \
/a:Export /ssn:tcp:localhost /sdn:db /su:sa /sp:password /tf:/data/db.bacpac
The following Docker tags are available:
latest
(Dockerfile)18.7
(Dockerfile)