Pull DB Server Image
In this example, we will pull the existence official database images via API commands and CLI command.
Pull an image by CLI commands
- MySQL
- MariaDB
- SQL Server
- MongoDB
- PostgreSQL
vme data-image-create mysql:latest
vme data-image-create mariadb:latest
vme data-image-create mcr.microsoft.com/mssql/server:latest
vme data-image-create mongo:latest
vme data-image-create postgres:latest
Pull an image by API commands
- MySQL
- MariaDB
- SQL Server
- MongoDB
- PostgreSQL
curl -X POST \
-H "Content-Type: application/json" \
-H 'username: xxxxx' \
-H 'api-key: xxxxx' \
-d '{"repository": "mysql", "tag": "latest"}' \
"https://x.x.x.x/docker/image/pull"curl -X POST \
-H "Content-Type: application/json" \
-H 'username: xxxxx' \
-H 'api-key: xxxxx' \
-d '{"repository": "mariadb", "tag": "latest"}' \
"https://x.x.x.x/docker/image/pull"curl -X POST \
-H "Content-Type: application/json" \
-H 'username: xxxxx' \
-H 'api-key: xxxxx' \
-d '{"repository": "mcr.microsoft.com/mssql/server", "tag": "latest"}' \
"https://x.x.x.x/docker/image/pull"curl -X POST \
-H "Content-Type: application/json" \
-H 'username: xxxxx' \
-H 'api-key: xxxxx' \
-d '{"repository": "mongo", "tag": "latest"}' \
"https://x.x.x.x/docker/image/pull"curl -X POST \
-H "Content-Type: application/json" \
-H 'username: xxxxx' \
-H 'api-key: xxxxx' \
-d '{"repository": "postgres", "tag": "latest"}' \
"https://x.x.x.x/docker/image/pull"