-
Notifications
You must be signed in to change notification settings - Fork 50
CB‐Spider Quickstart on Docker Desktop (macOS)
ByoungSeob Kim edited this page Sep 6, 2025
·
1 revision
- CB-Spider may bind to
127.0.0.1:1024
inside the container, so it cannot be reachable from the host. - Docker Desktop (macOS) does not support
--network host
. - This Guide makes CB-Spider accessible from your host Mac at http://localhost:1024
- Start CB-Spider
docker run -d --name cb-spider \
-p 1024:1024 \
-v ${HOME}/cloud-barista/cb-spider/meta_db:/root/go/src/github.com/cloud-barista/cb-spider/meta_db \
cloudbaristaorg/cb-spider:latest
- Add a socat sidecar (shares the same network namespace)
- Purpose: Make CB-Spider accessible from your host Mac without changing its configuration.
docker run -d --name cb-spider-proxy \
--network container:cb-spider \
alpine sh -lc '
apk add --no-cache socat >/dev/null &&
IP=$(hostname -i) &&
exec socat -dd TCP-LISTEN:1024,bind=${IP},fork TCP:127.0.0.1:1024
'
- Open AdminWeb
open http://localhost:1024/spider/adminweb # macOS
- Clean up
docker rm -f cb-spider-proxy cb-spider
- Create
docker-compose.yaml
version: "3.8"
services:
cb-spider:
image: cloudbaristaorg/cb-spider:latest
container_name: cb-spider
ports:
- "1024:1024"
volumes:
- ${HOME}/cloud-barista/cb-spider/meta_db:/root/go/src/github.com/cloud-barista/cb-spider/meta_db
restart: unless-stopped
cb-spider-proxy:
image: alpine:3.20
container_name: cb-spider-proxy
network_mode: "container:cb-spider"
depends_on:
- cb-spider
restart: unless-stopped
command: >
sh -c '
apk add --no-cache socat >/dev/null &&
sleep 5 &&
IP=$$(hostname -i) &&
echo "Container IP: $$IP" &&
exec socat -dd TCP-LISTEN:1024,bind=$$IP,fork TCP:127.0.0.1:1024
'
- Start CB-Spider + proxy sidecar (socat)
docker compose up -d
- Open AdminWeb
open http://localhost:1024/spider/adminweb # macOS
- Clean up
docker compose down
-
Install & Start Guide
-
Features & Usage
-
- AdminWeb Tool Guide
- CLI Tool Guide
- REST API Guide
- NLI Guide
-
Design
-
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
-
Test Reports
- v0.2.8-for-espresso-release
- v0.3.0-espresso-release
- Azure:Terminating VM
- cb-user@VM: ssh login, sudo run
- v0.3.14 test for SG Source
- v0.4.0-cafemocha-release
- Test via REST API Gateway
- Test Reports of v0.4.11 (IID2 initial Version)
- Test Reports of v0.4.12 (Register & Unregister existing Resources)
- Test Reports for v0.6.0 Release
- How to ...
- How to Use Alibaba ECS i1.* Instance Types
- How to provision GPU VMs
- How to Resolve the 'Failed to Connect to Database' Error
- 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 install OpenStack on a VM for CB Spider Testing
- How to get Azure available Regions
- How to profile memory usage in Golang
- Deprecated:How to install protoc and plugins
- [For Cloud-Migrator]