-
Notifications
You must be signed in to change notification settings - Fork 50
Docker based Start Guide
ByoungSeob Kim edited this page Mar 19, 2026
·
49 revisions
CB-Spider — One unified API to control multiple clouds. This guide shows you how to run CB-Spider using Docker without building from source.
This guide is based on a Linux environment (Ubuntu 24.04 LTS recommended).
-
Docker: Installed and running (
curl -fsSL https://get.docker.com | sh) -
curl / jq: for API verification (
sudo apt install -y curl jq)
| Tag | Description |
|---|---|
0.x.y (y = 0) |
Official release (e.g. 0.11.0) |
0.x.y (y ≠ 0) |
Pre-release (e.g. 0.11.7) |
latest |
Most recent pre-release |
edge |
Built on latest PR merge; newest features, untested |
⚠️ Setyour-server-ipto your host machine's IP address (e.g.,1.2.3.4:1024).
⚠️ Change the default password before deploying to production!
sudo docker run --rm -p 1024:1024 \
-v ${HOME}/cb-spider/meta_db:/root/go/src/github.com/cloud-barista/cb-spider/meta_db \
-e SERVER_ADDRESS="your-server-ip:1024" \
-e SPIDER_USERNAME="admin" -e SPIDER_PASSWORD="your-secure-password" \
-e MC_INSIGHT_API_TOKEN="c72df1af9b1f0c29" \
--name cb-spider \
cloudbaristaorg/cb-spidersudo docker run --rm -p 1024:1024 \
-v ${HOME}/cb-spider/meta_db:/root/go/src/github.com/cloud-barista/cb-spider/meta_db \
-e SERVER_ADDRESS="your-server-ip:1024" \
-e SPIDER_USERNAME="admin" -e SPIDER_PASSWORD="your-secure-password" \
-e MC_INSIGHT_API_TOKEN="c72df1af9b1f0c29" \
--name cb-spider \
cloudbaristaorg/cb-spider:0.12.6sudo docker run --rm -p 1024:1024 \
-v ${HOME}/cb-spider/meta_db:/root/go/src/github.com/cloud-barista/cb-spider/meta_db \
-e SERVER_ADDRESS="your-server-ip:1024" \
-e SPIDER_USERNAME="admin" -e SPIDER_PASSWORD="your-secure-password" \
-e MC_INSIGHT_API_TOKEN="c72df1af9b1f0c29" \
-e SPIDER_LOG_LEVEL="info" -e SPIDER_HISCALL_LOG_LEVEL="info" \
--name cb-spider \
cloudbaristaorg/cb-spiderLog Level Options:
| Environment Variable | Options |
|---|---|
SPIDER_LOG_LEVEL |
trace | debug | info | warn/warning | error | fatal | panic
|
SPIDER_HISCALL_LOG_LEVEL |
info | error
|
sudo docker run --rm -p 1024:1024 \
-v ${HOME}/cb-spider/meta_db:/root/go/src/github.com/cloud-barista/cb-spider/meta_db \
-e SERVER_ADDRESS="your-server-ip:1024" \
-e SPIDER_USERNAME="admin" -e SPIDER_PASSWORD="your-secure-password" \
-e MC_INSIGHT_API_TOKEN="c72df1af9b1f0c29" \
-e SERVICE_ADDRESS="5.6.7.8:1024" \
--name cb-spider \
cloudbaristaorg/cb-spider📖 Server Configuration | Authentication Guide
curl -sX GET http://{your-server-ip}:1024/spider/readyz# List all supported cloud providers
curl -sX GET -u admin:your-secure-password \
http://{your-server-ip}:1024/spider/cloudos | jq '.cloudos'Or open in browser:
http://{your-server-ip}:1024/spider/adminweb
Health check endpoints (
/readyz,/healthcheck,/health,/ping) do not require authentication.
All other REST API calls require Basic Auth (e.g.-u admin:your-secure-password).
Output includes: "AWS", "GCP", "AZURE", and more.
# Ctrl+C in Terminal 1, or:
sudo docker stop cb-spidersudo docker run -d --rm -p 1024:1024 \
-v ${HOME}/cb-spider/meta_db:/root/go/src/github.com/cloud-barista/cb-spider/meta_db \
-e SERVER_ADDRESS="your-server-ip:1024" \
-e SPIDER_USERNAME="admin" -e SPIDER_PASSWORD="your-secure-password" \
-e MC_INSIGHT_API_TOKEN="c72df1af9b1f0c29" \
--name cb-spider \
cloudbaristaorg/cb-spidersudo docker logs -f cb-spider# Reset all metadata (removes all registered clouds/resources)
sudo docker stop cb-spider && rm -rf ${HOME}/cb-spider/meta_db/*| Problem | Cause | Solution |
|---|---|---|
| Server won't start | Missing credentials | Set SPIDER_USERNAME and SPIDER_PASSWORD as environment variables |
| Container name conflict | Previous container not removed |
sudo docker rm cb-spider then retry |
| Port conflict | Port 1024 in use |
sudo lsof -i :1024 then stop the conflicting process |
# 1. Stop server
sudo docker stop cb-spider
# 2. Remove metadata
rm -rf ${HOME}/cb-spider/meta_db/*
# 3. Start server again
sudo docker run ...-
Install & Start Guide
-
Usage Guide
- Usage Overview
- Connection Management
- Region/Zone Info
- Quota Info
- VM Price Info
- VM Image Info
- VM Spec Info
- VPC/Subnet Management
- Security Group Management
- KeyPair Management
- VM Management
- Disk Management
- Network Load Balancer(NLB) Management
- Kubernetes Cluster Management
- Object Storage(S3) Management
- Tag Management
- Cloud Driver Capability Info
- Function Menu
- MetaDB Auto Backup
- How to get CSP Credentials
- Tutorials
- Developer Guide
- Cloud Driver Developer Guide
- Cloud Driver Developer Guide-WIP
- VM SSH Key Development Guide-WIP
- VM User Development Guide
- What is the CSP SDK API Version of drivers
- Region Zone Info and Driver API
- (StartVM TerminateVM) API Call Counts and Waiting
- StartVM and TerminateVM Main Flow of drivers
- VM Root Disk Configuration Guide
- Security Group Rules and Driver API
- Network Load Balancer and Driver API
- VM Snapshot, MyImage and Disk Overview
- Kubernetes and Driver API(PMKS, K8S)
- Tag and Cloud Driver API
- AnyCall API Extension Guide
- How to ...
- How to Use AWS S3 with Credentials
- How to Use Alibaba ECS i1.* Instance Types
- How to provision GPU VMs
- How to test CB Spider with Mock Driver
- How to install CB Spider on WSL2 under 공유기/사설망
- How to install CB Spider on macOS
- How to run CB Spider Container on macOS
- How to get Azure available Regions
- How to profile memory usage in Golang
- [For Cloud-Migrator]