How to Run Docker Container

The Docker technology is designed to automate the deployment of the applications by using lightweight containers. Developers can use a Docker Container to wrap up an application with all of its libraries and dependencies and deploy everything as a single package.

Aspose.Words Cloud team has published the Docker Container on Docker Hub to facilitate the Docker users. The following sections will guide you that how to run a Docker commands or write configuration in a Yaml file for Docker compose tool.

Container configuration

Required volumes

Mount path in container Description
/fonts Folder with fonts, which will be used to render documents
/data File storage folder


Name Description
LicensePublicKey Public key of the license
LicensePrivateKey Private key of the license
User Username
Password Password

If “License” parameters are omitted, the app will work in trial mode. If “User” parameter is set, each request requires “Authorization” header (JWT authentication). The URL to obtain token is “/connect/token”.

Run a Docker container using command line

You can simply run the following docker command after pulling the container from Docker Hub.

docker run   -e "LicensePublicKey=public_key" -e "LicensePrivateKey=private_key" -v "/fonts:/fonts" -v "/data:/data" aspose/

Configurations for Docker-Compose Tool

You can write the following configurations in your yaml file for Docker-Compose tool:

      image: aspose/
      ports: ["8082:80"]
      volumes: [
        "User": "User"
        "Password": "Password"
        "LicensePublicKey": "yourKeyHere"
        "LicensePrivateKey": "yourKeyHere"