Video Tutorial
Bring your own image from Docker Hub, AWS ECR, or any private registry. Containers run with optional GPU acceleration and stream output back to you in real time.
CLI
Thelyceum docker run command mirrors docker run semantics.
-d / --detach to return immediately and reconnect later with lyceum docker logs <execution_id>.
Flags
| Flag | Default | Description |
|---|---|---|
image (positional) | — | Docker image reference, e.g. python:3.11 or myregistry.com/img:tag |
-m, --machine | cpu | Machine type — see Machine Types |
-t, --timeout | 300 | Execution timeout in seconds |
-c, --command | — | Command to run inside the container (single string, parsed shell-style) |
-e, --env | — | Environment variable as KEY=value (repeatable) |
-f, --file-name | — | Friendly name for the execution |
-d, --detach | false | Return immediately after starting the container |
--callback | — | Webhook URL notified on completion |
--registry-creds | — | Private registry credentials as a JSON string |
--registry-type | — | Credential type: basic or aws |
--s3 / --no-s3 | --s3 | Mount your S3 storage inside the container |
--s3-mount-path | /mnt/s3 | Path inside the container where S3 is mounted |
--graceful-timeout | — | Seconds to wait for graceful shutdown on cancel |
Private Registries
- Docker Hub
- AWS ECR
lyceum docker registry-examples.
Streaming Logs Later
Ctrl+C only disconnects from the log stream — it does not cancel the running execution.
API
The CLI is a thin wrapper aroundPOST /api/v2/external/execution/image/start. Use the API directly when integrating with custom orchestration.
Request fields
| Field | Type | Description |
|---|---|---|
docker_image_ref | string (required) | Fully qualified image reference |
execution_type | string | Machine type (cpu, gpu, gpu.a100, gpu.h100, …). Defaults to cpu. |
docker_run_cmd | string[] | Override container command |
docker_run_env | string | Environment variables, newline-separated KEY=VALUE pairs |
timeout | integer | Maximum execution time in seconds |
docker_registry_credential_type | string | basic or aws |
docker_username / docker_password | string | Basic registry credentials |
aws_access_key_id / aws_secret_access_key / aws_session_token / aws_region | string | AWS ECR credentials |
enable_s3_mount | bool | Mount user S3 storage inside the container |
s3_mount_path | string | Mount path (default /mnt/s3) |
user_callback_urls | string[] | Webhook URLs for streamed output |
graceful_timeout | integer | Seconds to wait for graceful shutdown on cancel |
file_name | string | Friendly name for the execution |
Troubleshooting
Image pull errors
Image pull errors
- Verify the image name and tag exist
- Check registry credentials and
--registry-type - Ensure the image is built for
linux/amd64 - Test the pull locally first:
docker pull your-image:tag
Authentication failed (HTTP 401)
Authentication failed (HTTP 401)
Run
lyceum auth login to refresh your credentials, then retry.Need help? Contact info@lyceum.technology.

