Example: Job Configuration (job.json)
docker_user: Sets the execution context tomodel-runner. This follows the standard security best practice of ensuring that the container does not run as root. The usermodel-runnerin the example below must exist inside the image you are using (e.g.otoy/dispersed-base). If the image doesn’t have that user defined, the job will fail to start.secrets: Demonstrates how to inject sensitive environment variables (like API tokens) while keeping them safely out of the JSON file. This ensures security by preventing your credentials from being committed to version control systems such as Git.ports: Maps the internal application port (8080) to a public-facing port (443). This allows the Service Consumer to access their model’s API from the internet.
Windows Subsystem for Linux (WSL) simply lets you use Linux programs like normal command-line tools directly within Windows. It works quickly without needing a separate, full-blown virtual machine or having to restart your computer to switch operating systems. You can find more details and setup instructions on the official Microsoft Learn WSL Documentation.
1. Install WSL with Ubuntu
Open PowerShell as Administrator:2. Verify GPU Access in WSL
Inside your WSL Ubuntu terminal:/usr/lib/wsl/lib/nvidia-smi in the Linux terminal or simply nvidia-smi.exein the Windows Powershell terminal (WSL can run Windows executables). If this fails, see the CUDA on WSL User Guide.
3. Install Docker and NVIDIA Container Toolkit
Steps to install the Docker are laid out at Install Docker Engine on Ubuntu documentation. Run all commands inside your WSL Ubuntu terminal. For more details and in-depth understanding of Docker, refer to their official pages for a thorough introduction to Docker and consult their Docker Engine Manual. Once successfully installed, you can check the status of the docker engine:4. Verify Container GPU Access
When running the
disNet client, pass your keys as command line arguments.
First time registration:
For Programmatic API Access If you’re building your own API client or scripts, requests require HMAC signature authentication with four headers:X-API-Key— Your public keyX-Time— Current timestamp in millisecondsX-Nonce— Random 32-byte hex stringX-Signature— HMAC-SHA256 signature