शुरुआत करें¶
इस पेज का अंग्रेज़ी संस्करण नया है। अंग्रेज़ी संस्करण पढ़ें।
पूर्वापेक्षाएँ¶
-
Docker, साथ में Compose v2 plugin, संस्करण 2.23.1 या नया। इसे
docker compose versionसे जाँचें। पुराने संस्करण compose फ़ाइल में दी गई इनलाइन config नहीं पढ़ पाते। Docker Desktop में यह plugin शामिल है। Linux पर केवल Docker Engine हो, तो इसे Docker के पैकेज रिपॉज़िटरी से इंस्टॉल करें (https://docs.docker.com/compose/install/linux/)। Colima वाले macOS पर इसे Homebrew से इंस्टॉल करें और Docker plugin के रूप में लिंक करें: -
एक Linux, macOS या Windows होस्ट (amd64 या arm64)
- CashPilot और उसकी चलाई सेवाओं के लिए कम से कम 1 GB खाली RAM
- हर Docker होस्ट पर एक ही CashPilot। नीचे दी गई चेतावनी देखें।
हर Docker होस्ट पर एक ही CashPilot
एक Docker होस्ट पर CashPilot के दो इंस्टॉल न चलाएँ। compose फ़ाइलें
तय कंटेनर नाम इस्तेमाल करती हैं (cashpilot-ui, cashpilot-worker,
cashpilot-socket-proxy), इसलिए फ़ाइल की दूसरी कॉपी नाम के टकराव
पर विफल हो जाती है। अगर आप इससे बचने के लिए नाम बदल दें, तब भी दोनों इंस्टॉल
एक ही होस्ट साझा करते हैं। हर वर्कर उन सभी कंटेनरों को संभालता है जिन पर
CashPilot के लेबल लगे हैं, चाहे उन्हें किसी भी इंस्टॉल ने बनाया हो। इसलिए हर डैशबोर्ड
दूसरे के कमाई ऐप दिखाता है, रोकता है और बदल देता है। दोनों
cashpilot-isolated नेटवर्क, कमाई ऐप के नाम (cashpilot-<service>),
उनके होस्ट पोर्ट और mysterium-data जैसे वॉल्यूम भी साझा करते हैं। दूसरे
इंस्टॉल के लिए कोई दूसरा होस्ट या VM इस्तेमाल करें। ज़्यादा सर्वरों पर कमाई ऐप चलाने के लिए
इसके बजाय एक ही डैशबोर्ड में वर्कर जोड़ें (फ़्लीट)।
त्वरित शुरुआत¶
1. compose फ़ाइल डाउनलोड करें और चलाएँ¶
curl -fsSLO https://raw.githubusercontent.com/GeiserX/CashPilot/main/docker-compose.yml
docker compose up -d
इससे तीन लगातार चलने वाले कंटेनर शुरू होते हैं। उनसे पहले एक बार चलने वाला
cashpilot-migrate हर up पर चलता है और कोड 0 के साथ बंद हो जाता है, इसलिए
docker compose ps -a उसे Exited (0) दिखाता है। यह सामान्य है।
| कंटेनर | पोर्ट | उद्देश्य |
|---|---|---|
| cashpilot-migrate | कोई नहीं | एक बार चलता है और बंद हो जाता है। यह किसी पुराने रिलीज़ के बनाए डेटा को उन वॉल्यूम पर ले जाता है जिन्हें socket proxy स्वीकार करता है, और नए इंस्टॉल पर इसे करने को कुछ नहीं मिलता |
| cashpilot-ui | 8080 | वेब डैशबोर्ड, कमाई का संग्रह, सेवा कैटलॉग |
| cashpilot-worker | 8081 | Docker एजेंट जो सेवा कंटेनरों को डिप्लॉय करता है और उन पर नज़र रखता है |
| cashpilot-socket-proxy | कोई नहीं | Docker socket को रखता है और वर्कर को उसकी छनी हुई कॉपी देता है (सुरक्षा डिफ़ॉल्ट) |
2. डैशबोर्ड खोलें¶
अपने ब्राउज़र में http://localhost:8080 पर जाएँ। अभी कोई खाता नहीं है, इसलिए आप स्वागत पेज पर पहुँचते हैं, जो स्वामी खाता बनाता है।
पोर्ट 8080 पहले से इस्तेमाल में है?
compose फ़ाइल बदलने के बजाय docker-compose.yml के बगल की .env फ़ाइल में
कोई दूसरा होस्ट पोर्ट चुनें:
फिर http://localhost:8088 खोलें। यह मान .env में ही रखें, क्योंकि
ऐप के अंदर का अपडेट वही फ़ाइल पढ़ता है, आपका शेल नहीं। (printf एक नई
लाइन से शुरू होता है, ताकि यह लाइन किसी मौजूदा .env की आख़िरी लाइन से कभी न जुड़े।)
इस वेरिएबल के लिए ऐसी docker-compose.yml चाहिए जिसकी ports: लाइन
${CASHPILOT_UI_PORT:-8080}:8080 हो। v1.61 और उससे पुरानी फ़ाइल में
8080:8080 पक्का लिखा है और वह इसे अनदेखा करती है। मौजूदा फ़ाइल डाउनलोड करें, या
अपना बदला हुआ पोर्ट मैपिंग रखें: ऐप के अंदर का अपडेट उसे भी स्वीकार करता है।
पहली बार के सेटअप के लिए सेटअप टोकन ज़रूरी है
पहली शुरुआत पर CashPilot एक बार इस्तेमाल होने वाला सेटअप टोकन बनाता है और उसे cashpilot-ui कंटेनर के लॉग में लिखता है:
ऐसी लाइन खोजें:
FIRST-RUN SETUP: no account exists yet. Open /register and enter this
one-time setup token to create the owner account: <token>
पहला (स्वामी) खाता बनाने के लिए वह टोकन स्वागत पेज के Owner account (स्वामी खाता) चरण में Setup token (सेटअप टोकन) फ़ील्ड में डालें, साथ में एक यूज़रनेम और पासवर्ड भी। यह केवल लॉग में दिखता है, कभी किसी URL में नहीं, और स्वामी खाता बनते ही हमेशा के लिए हटा दिया जाता है।
3. सेवा कैटलॉग देखें¶
Catalog (कैटलॉग) पेज हर सेवा को उसके प्लेटफ़ॉर्म, एक मासिक अनुमान और उसकी ज़रूरतों (आवासीय IP, GPU) के साथ दिखाता है। श्रेणी (बैंडविड्थ, DePIN, स्टोरेज, कंप्यूट, माइनिंग) से छाँटें या नाम से खोजें। Add (जोड़ें) उस सेवा पर सेटअप विज़ार्ड खोलता है, Details (विवरण) उसका विवरण, भुगतान और डिप्लॉय का जोखिम दिखाता है, और जो सेवाएँ Docker में नहीं चलतीं उनके लिए इसके बजाय Visit (देखें) लिंक होता है।
दो तरह की सेवाओं को पहले ध्यान से देखना चाहिए: वे सेवाएँ जो तभी भुगतान करती हैं जब आप कोई टोकन स्टेक लॉक करते हैं, जैसे Anyone Protocol, Sia और Flux, और वे रिले जो आपका IP सार्वजनिक करते हैं, जिससे आवासीय बैंडविड्थ ऐप आपको कम भुगतान कर सकते हैं। देखें डिप्लॉय करने से पहले दो बातें जाँचें।
4. विज़ार्ड से सेवाएँ जोड़ें¶
स्वामी खाता बन जाने के बाद Add services (सेवाएँ जोड़ें) सेटअप विज़ार्ड खोलता है; बाद में ऊपर की पट्टी का + Add service (+ सेवा जोड़ें) बटन उसे फिर से खोलता है। श्रेणियाँ चुनें, फिर सेवाएँ। हर सेवा के लिए विज़ार्ड एक Sign Up (साइन अप करें) लिंक दिखाता है, केवल वही क्रेडेंशियल माँगता है जो उस सेवा को चाहिए (ईमेल और पासवर्ड, API टोकन आदि) और आपको वे वर्कर चुनने देता है जिन पर उसे चलाना है। Deploy (डिप्लॉय करें) पर क्लिक करें, और CashPilot इमेज खींचता है, कंटेनर बनाता है और उस पर नज़र रखना शुरू करता है।
5. डैशबोर्ड पर इसे देखें¶
डैशबोर्ड हर डिप्लॉय की गई सेवा को उसकी स्थिति और बैलेंस के साथ दिखाता है, और Fleet (फ़्लीट) पेज हर वर्कर दिखाता है।
यह कैसे काम करता है¶
graph LR
A[User] -->|Browse & Configure| B[CashPilot UI<br>Port 8080]
B -->|Deploy Commands| C[CashPilot Worker<br>Port 8081]
C -->|Docker API| D[Service Containers]
D -->|Health & Status| C
C -->|Heartbeat| B
B -->|Collect Earnings| E[Service APIs]
E -->|Balance Data| B
- आप सेवाएँ कॉन्फ़िगर करते हैं वेब UI से -- एक सेवा चुनें, क्रेडेंशियल डालें, डिप्लॉय पर क्लिक करें।
- UI भेजता है कंटेनर का विवरण (इमेज, env vars, वॉल्यूम) REST API से वर्कर को।
- वर्कर बनाता है Docker कंटेनर और उसकी सेहत पर नज़र रखना शुरू करता है।
- वर्कर बताता है कंटेनर की स्थिति UI को हर 60 सेकंड में, हार्टबीट के ज़रिए।
- UI इकट्ठा करता है सेवाओं के API से कमाई, एक बदले जा सकने वाले समय-क्रम पर (डिफ़ॉल्ट: हर घंटे)।
- डैशबोर्ड दिखाता है कुल कमाई, हर सेवा का ब्योरा और कंटेनरों की सेहत।
कॉन्फ़िगरेशन¶
UI के एनवायरनमेंट वेरिएबल¶
| वेरिएबल | डिफ़ॉल्ट | विवरण |
|---|---|---|
TZ |
UTC |
समय-क्रम और प्रदर्शन के लिए टाइमज़ोन |
CASHPILOT_SECRET_KEY |
(अपने आप बनती है) | लॉगिन सेशन पर हस्ताक्षर करने की कुंजी। /data/.secret_key में सहेजी जाती है। क्रेडेंशियल एन्क्रिप्ट नहीं करती |
CASHPILOT_ENCRYPTION_KEY |
(अपने आप बनती है) | Fernet कुंजी जो सहेजे गए क्रेडेंशियल को स्टोरेज में एन्क्रिप्ट करती है। /data/.fernet_key में सहेजी जाती है। केवल तब इस्तेमाल होती है जब वह फ़ाइल न हो, और कभी /data में नहीं लिखी जाती। CASHPILOT_ENCRYPTION_KEY_FILE (एक पाथ) इन दोनों पर भारी पड़ता है: देखें डेटा फ़ोल्डर के बाहर एन्क्रिप्शन कुंजी |
CASHPILOT_API_KEY |
(/fleet से) |
वर्करों के लिए साझा नामांकन कुंजी। हर वर्कर नामांकन पर अपनी कुंजी पाता है; देखें फ़्लीट |
CASHPILOT_COLLECT_INTERVAL |
60 |
कमाई संग्रह के दो चक्रों के बीच मिनट |
CASHPILOT_UI_PORT |
8080 |
होस्ट पोर्ट जिस पर UI प्रकाशित होता है। 8080 व्यस्त हो तो इसे .env में सेट करें |
CASHPILOT_BIND_ADDR |
127.0.0.1 |
होस्ट इंटरफ़ेस जिस पर UI पोर्ट प्रकाशित होता है। डिफ़ॉल्ट रूप से loopback: डैशबोर्ड Docker socket वाले वर्कर को आदेश दे सकता है, इसलिए शुरुआत में यह आपके नेटवर्क पर खुला नहीं होता। इसे खोलने के लिए कोई खास IP (जैसे Tailscale/VPN पता) या 0.0.0.0 सेट करें, या (बेहतर) इसके आगे प्रमाणीकरण करने वाला reverse proxy चलाएँ |
कंटेनर के अंदर UI का वेब पोर्ट 8080 पर तय है (कंटेनर के CMD से सेट)। CASHPILOT_UI_PORT और CASHPILOT_BIND_ADDR केवल वह होस्ट पोर्ट और इंटरफ़ेस चुनते हैं जिस पर यह प्रकाशित होता है।
वर्कर के एनवायरनमेंट वेरिएबल¶
| वेरिएबल | डिफ़ॉल्ट | विवरण |
|---|---|---|
TZ |
UTC |
टाइमज़ोन |
CASHPILOT_UI_URL |
-- | UI कंटेनर का URL, जैसे http://cashpilot-ui:8080 |
CASHPILOT_API_KEY |
-- | UI की नामांकन कुंजी से मेल खाना चाहिए। केवल नामांकन के लिए ज़रूरी; उसके बाद वर्कर अपनी कुंजी इस्तेमाल करता है |
CASHPILOT_WORKER_NAME |
(hostname) | फ़्लीट डैशबोर्ड में इस वर्कर का दिखने वाला नाम |
CASHPILOT_WORKER_URL |
(अपने आप पहचाना जाता है) | वह URL जिससे UI इस वर्कर तक पहुँचता है, जैसे http://192.168.1.50:8081। कई होस्ट वाले फ़्लीट में इसे साफ़ तौर पर सेट करें: अपने आप पहचान कंटेनर के अंदर का ऐसा IP बता सकती है जिस तक पहुँचा नहीं जा सकता |
CASHPILOT_WORKER_BIND_ADDR |
127.0.0.1 |
केवल फ़्लीट और रिमोट-वर्कर compose (docker-compose.fleet.yml): होस्ट इंटरफ़ेस जिस पर वर्कर का Docker socket वाला API पोर्ट प्रकाशित होता है, डिफ़ॉल्ट रूप से loopback। डिफ़ॉल्ट docker-compose.yml पोर्ट 8081 को प्रकाशित ही नहीं करता। वर्कर API कोई भी कंटेनर डिप्लॉय या बंद कर सकता है (= होस्ट पर root), इसलिए रिमोट वर्कर के लिए किसी निजी/VPN इंटरफ़ेस (जैसे Tailscale IP) से बाँधें, कभी नहीं किसी सार्वजनिक IP से |
CASHPILOT_PORT |
8081 |
वह पोर्ट जिसकी वर्कर UI को घोषणा करता है। यह सुनने वाले पोर्ट को नहीं बदलता, जो इमेज के CMD से तय है; देखें कॉन्फ़िगरेशन संदर्भ |
Docker Compose उदाहरण¶
# CashPilot - Self-hosted passive income orchestrator
# https://github.com/GeiserX/CashPilot
#
# UI + Worker on the same server. For multi-server fleet, see docker-compose.fleet.yml
#
# Start / update: docker compose pull && docker compose up -d
#
# ONE CashPilot per Docker host. The container names in this file are fixed,
# and a worker manages every container on its Docker engine that carries
# CashPilot's labels, whichever install made it. A second install on the same
# host would list, stop and replace the first one's earners. Put it on another
# host or VM. docs/getting-started.md has the details.
#
# Images are PINNED to a major.minor tag, which is what the lines below say.
# `docker compose pull && up -d` therefore gets the newest patch of that series,
# not the newest release overall. To move to a newer series, read UPGRADING.md
# first, then edit the tags on the UI host first and on every worker after it.
#
# This header used to claim the file tracked `latest` while pinning 1.4, and the
# string `:latest` it told you to replace did not appear anywhere. Following the
# quickstart therefore installed a version many releases behind, and issue #188
# is someone hitting a first-run bug that had been fixed for months because of
# it. Keep this comment honest about what the file actually does.
# See https://hub.docker.com/r/drumsergio/cashpilot/tags for available tags.
# NOTE: versions before 1.0.0 predate the per-worker fleet-key auth cutover and
# are not compatible with a worker running 1.x -- pin UI and worker together.
# Building from source? Use: docker compose -f docker-compose.build.yml up -d
services:
cashpilot-ui:
image: drumsergio/cashpilot:3.3
pull_policy: always
container_name: cashpilot-ui
# Published on loopback by default: the dashboard can command the Docker-socket
# worker, so it must not be exposed to your LAN/the internet out of the box.
# To reach it from another machine, point CASHPILOT_BIND_ADDR at a specific
# interface (e.g. a Tailscale/VPN IP) or, better, run an authenticating reverse
# proxy in front. CASHPILOT_BIND_ADDR=0.0.0.0 publishes on all interfaces.
# Host port 8080 already taken? Set CASHPILOT_UI_PORT=8088 (and CASHPILOT_BIND_ADDR)
# in a .env file next to this compose file, not on the command line. The in-app
# update reads .env and never sees your shell. The container port stays 8080.
ports:
- "${CASHPILOT_BIND_ADDR:-127.0.0.1}:${CASHPILOT_UI_PORT:-8080}:8080"
volumes:
- cashpilot_data:/data
- cashpilot_fleet_owned:/fleet
environment:
- TZ=${TZ:-UTC}
- CASHPILOT_SECRET_KEY=${CASHPILOT_SECRET_KEY:-}
# Optional: only needed to RESTORE credentials onto a fresh volume.
# An existing /data/.fernet_key always wins, so setting this is safe.
- CASHPILOT_ENCRYPTION_KEY=${CASHPILOT_ENCRYPTION_KEY:-}
- CASHPILOT_ALLOW_EPHEMERAL_KEY=${CASHPILOT_ALLOW_EPHEMERAL_KEY:-false}
- CASHPILOT_API_KEY=${CASHPILOT_API_KEY:-}
- CASHPILOT_ADMIN_API_KEY=${CASHPILOT_ADMIN_API_KEY:-}
# Optional bearer key for reporting only (Home Assistant, Grafana,
# cashpilot-mcp with CASHPILOT_READ_ONLY=true). See docs/configuration.md.
- CASHPILOT_READONLY_API_KEY=${CASHPILOT_READONLY_API_KEY:-}
# Optional Prometheus /metrics. true serves it; set a token to require
# Authorization: Bearer. See docs/guides/prometheus-metrics.md.
- CASHPILOT_METRICS_ENABLED=${CASHPILOT_METRICS_ENABLED:-false}
- CASHPILOT_METRICS_TOKEN=${CASHPILOT_METRICS_TOKEN:-}
# Optional CAPTCHA on the sign-in page, for a UI the internet can reach:
# turnstile, hcaptcha or recaptcha (v2 checkbox), plus both keys. Empty = off.
# See docs/security-defaults.md, "Protect the sign-in page with a CAPTCHA".
- CASHPILOT_CAPTCHA_PROVIDER=${CASHPILOT_CAPTCHA_PROVIDER:-}
- CASHPILOT_CAPTCHA_SITE_KEY=${CASHPILOT_CAPTCHA_SITE_KEY:-}
- CASHPILOT_CAPTCHA_SECRET_KEY=${CASHPILOT_CAPTCHA_SECRET_KEY:-}
# Warn when a container misses a later catalog fix. false turns it off.
- CASHPILOT_DRIFT_WARNINGS=${CASHPILOT_DRIFT_WARNINGS:-true}
init: true
# The image declares its own HEALTHCHECK, so `docker ps` will show
# "(unhealthy)" when the app stops answering. NOTHING ACTS ON THAT BY
# DEFAULT: `restart: unless-stopped` restarts a container that EXITS, and a
# container failing its healthcheck is still running. It will sit there
# unhealthy indefinitely. (Docker Swarm reschedules unhealthy tasks; plain
# Compose does not.)
#
# To act on it, either alert on it -- see the CashPilotDown rule in
# docs/guides/prometheus-metrics.md -- or add an autoheal sidecar, which is
# documented in the same place along with the fact that it needs the Docker
# socket, i.e. root on the host.
restart: unless-stopped
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp:size=64M
# cashpilot_fleet_owned is filled by cashpilot-migrate on an upgrade.
depends_on:
cashpilot-migrate:
condition: service_completed_successfully
# Where the UI reaches the worker. Labelled for the proxy, so the in-app
# update may attach the worker to it.
networks:
- cashpilot_owned
# Runs once at every `docker compose up`, before the proxy, and exits.
# Releases before owner isolation made volumes and the LAN fence's network
# without the proxy's owner label, and Docker cannot add a label later, so
# this copies each one to a backup, recreates it with the label, copies the
# data back and checks it, then recreates the service container as it was.
# The backups (<volume>-pre-isolation) and the volumes this file renamed are
# never deleted: UPGRADING.md says how to remove them. It holds the raw
# socket only while it runs; a second run finds nothing to do.
cashpilot-migrate:
image: drumsergio/cashpilot-worker:3.3
pull_policy: always
container_name: cashpilot-migrate
user: "0:0"
entrypoint: ["python", "-m", "app.owner_migrate"]
environment:
# old=new compose volume keys: the data moves into the labelled volume.
- CASHPILOT_MIGRATE_COMPOSE_VOLUMES=cashpilot_worker_data=cashpilot_worker_data_owned,cashpilot_fleet=cashpilot_fleet_owned
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# Each step it finished, so a run killed halfway is completed by the next.
# A folder, not a volume: the in-app update runs docker compose through
# the proxy, and Compose checks every volume of the worker's dependencies,
# this one included, which the proxy will not let the worker see.
- ./cashpilot-migrate-state:/state
network_mode: none
restart: "no"
healthcheck:
disable: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
# Holds the host's Docker socket so the worker does not have to. It serves
# a filtered copy in the cashpilot_docker_api volume and refuses every call
# the worker does not make: a privileged container, a bind of / or of the
# socket, a capability or device outside the catalog's, exec of anything but
# the catalog's readers, swarm, plugins, builds. The policy is the configs
# block at the end of this file. docs/security-defaults.md has the details.
#
# Pinned by digest and bumped on purpose; the in-app update never recreates
# it (it runs `up --no-deps` on the UI and worker only).
cashpilot-socket-proxy:
image: codeswhat/sockguard:2.4.10@sha256:af66f6dcab2d6c04c4a45823ea9b72549985bf1957dea3bb4382c1515ab9461e
container_name: cashpilot-socket-proxy
# Root with no capabilities: uid 0 opens the root-owned host socket, and
# group 1000 (the worker's) lets it give the worker its socket.
user: "0:0"
group_add:
- "1000"
cap_drop:
- ALL
# One capability it never uses, and that no container the worker creates
# may ask for. A container that joins this one's process namespace then
# holds less than the proxy does, so the kernel refuses it the proxy's
# files (/proc/1/root), the host socket among them.
cap_add:
- WAKE_ALARM
security_opt:
- no-new-privileges:true
# Unix sockets only; it needs no network at all.
network_mode: none
restart: unless-stopped
# It peaks near 45 MB, streams included; the cap only stops a leak
# from taking the host's memory with it.
mem_limit: 256m
# One log line per Docker call (refusals included), so the log is capped.
logging:
driver: json-file
options:
max-size: "5m"
max-file: "2"
# `sockguard verify` asks the host's Docker through the socket this proxy
# holds, so a stale or missing host socket (a Docker update replaced it,
# docs/faq.md) turns it unhealthy. Exec form: the image has no shell.
healthcheck:
test: ["CMD", "/sockguard", "verify"]
interval: 60s
timeout: 10s
retries: 3
start_period: 20s
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- cashpilot_docker_api:/run/cashpilot-docker
environment:
# Host paths containers may bind: your compose folder (the in-app
# update needs it) and each folder a service keeps its data in (Storj's
# identity and data folders, for example), comma-separated. Set both in
# the .env next to this file. The proxy binds a listed path only as
# itself, never a folder under it, so list every path a service binds.
# Write each as an exact absolute path, with no trailing slash, `//`, `.`
# or `..`: the proxy refuses to start on any other spelling.
# The placeholders sit under /dev/null, where no directory can ever exist
# (Docker cannot create one there), so an unset variable allows nothing.
- SOCKGUARD_REQUEST_BODY_CONTAINER_CREATE_ALLOWED_BIND_MOUNTS=${CASHPILOT_COMPOSE_DIR:-/dev/null/cashpilot-compose-dir-unset},${CASHPILOT_PROXY_BIND_MOUNTS:-/dev/null/cashpilot-bind-mounts-unset}
# The policy's fingerprint. Compose does not recreate a container when
# only its config's content changes, so this line is what makes
# `docker compose up -d` restart the proxy on a new policy.
- CASHPILOT_PROXY_POLICY=bf36af85a1e0f393
configs:
- source: cashpilot_socket_policy
target: /etc/sockguard/sockguard.yaml
depends_on:
cashpilot-migrate:
condition: service_completed_successfully
cashpilot-worker:
image: drumsergio/cashpilot-worker:3.3
pull_policy: always
container_name: cashpilot-worker
# The proxy's owner label: the worker may read its own container, and the
# in-app update may recreate it through the proxy.
labels:
cashpilot.deployed-by: worker
expose:
- "8081"
# The worker reads host GPU information from sysfs. Leave the GPU
# devices on the host so it can grant them to catalog services
# that declare docker.gpu. See docs/gpu.md.
volumes:
# No Docker socket here: the worker reaches Docker through the proxy's
# filtered socket in this volume (DOCKER_HOST below).
- cashpilot_docker_api:/run/cashpilot-docker
# SEPARATE FROM THE UI'S /data, DELIBERATELY. This container drives
# Docker, so a flaw in it reaches the host. The UI's /data holds
# cashpilot.db and .fernet_key -- the credential store and the only key
# that can decrypt it -- and the component that can start any container
# on the machine has no business being able to read them.
#
# /fleet IS shared on purpose: it holds only the shared enrolment key,
# which both sides need by definition.
#
# Consolidating these into one volume is the obvious "simplification" and
# it silently removes that boundary. tests/test_beads_batch_69.py fails if
# anyone does.
- cashpilot_worker_data_owned:/data
- cashpilot_fleet_owned:/fleet
environment:
- TZ=${TZ:-UTC}
- CASHPILOT_UI_URL=http://cashpilot-ui:8080
- CASHPILOT_API_KEY=${CASHPILOT_API_KEY:-}
- CASHPILOT_WORKER_NAME=local
- CASHPILOT_MINERS=${CASHPILOT_MINERS:-}
- DOCKER_HOST=unix:///run/cashpilot-docker/docker.sock
# The proxy policy's fingerprint (scripts/socket_proxy_policy.py), so the
# worker can say when its image needs a newer policy than this file has.
- CASHPILOT_PROXY_POLICY=bf36af85a1e0f393
# The same two values the proxy gets, so the worker can say what to set
# before the proxy refuses (the in-app update, a host-folder bind).
- CASHPILOT_COMPOSE_DIR=${CASHPILOT_COMPOSE_DIR:-}
- CASHPILOT_PROXY_BIND_MOUNTS=${CASHPILOT_PROXY_BIND_MOUNTS:-}
# Earners are fenced off your LAN and this host by default (docs/isolation.md).
# off keeps Docker's default bridge.
- CASHPILOT_ISOLATION=${CASHPILOT_ISOLATION:-auto}
- CASHPILOT_DRIFT_WARNINGS=${CASHPILOT_DRIFT_WARNINGS:-true}
depends_on:
- cashpilot-socket-proxy
init: true
restart: unless-stopped
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp:size=64M
# Labelled for the proxy, so the in-app update may attach the worker to it.
networks:
- cashpilot_owned
volumes:
cashpilot_data:
# The worker's own data and the enrolment key it shares with the UI. They
# carry the proxy's owner label, so the in-app update may mount them. Compose
# never relabels a volume, so they are new ones: cashpilot-migrate copied
# cashpilot_worker_data and cashpilot_fleet into them and left the old ones
# as backups. The UI's cashpilot_data never carries the label.
cashpilot_worker_data_owned:
labels:
cashpilot.deployed-by: worker
cashpilot_fleet_owned:
labels:
cashpilot.deployed-by: worker
# Fixed name: the in-app update mounts it by name to reach the proxy. It
# replaced cashpilot-docker-api, which held nothing but the socket.
cashpilot_docker_api:
name: cashpilot-docker-api-owned
labels:
cashpilot.deployed-by: worker
networks:
cashpilot_owned:
labels:
cashpilot.deployed-by: worker
# The Docker socket proxy's policy. scripts/socket_proxy_policy.py writes it
# from the catalog; `$$` is how compose spells a literal `$`. Needs Docker
# Compose 2.23.1 or newer (inline config content).
configs:
cashpilot_socket_policy:
content: |
# BEGIN socket proxy policy: written by scripts/socket_proxy_policy.py, do not edit by hand
listen:
socket: /run/cashpilot-docker/docker.sock
# The worker runs as uid/gid 1000 (Dockerfile.worker). The proxy runs as
# root with no capabilities and joins group 1000, so it can hand the socket
# to that group without asking for the host's docker group id.
socket_mode: "0660"
socket_gid: 1000
upstream:
socket: /var/run/docker.sock
# Image pulls and container waits take minutes; the default cuts them at 60 s.
request_timeout: "off"
log:
level: info
format: json
# One line per call, refusals included: docker logs cashpilot-socket-proxy
# shows what was refused and why. The compose file caps the log's size.
access_log: true
health:
enabled: false
# The worker reads its own containers' logs and files (backups, the update check).
insecure_allow_read_exfiltration: true
response:
# A refusal carries the rule's reason, which the worker shows to you.
deny_verbosity: verbose
# The worker reads Env, Mounts and IPAM back (recreates, the isolation check).
redact_container_env: false
redact_mount_paths: false
redact_network_topology: false
request_body:
container_create:
allow_privileged: false
# The LAN fence helper and the isolation check's control probe run on the
# host network; no earner does (the worker refuses it for every catalog
# service, and the catalog refuses it to any service with NET_ADMIN).
allow_host_network: true
allow_host_pid: false
allow_host_ipc: false
allow_host_userns: false
allow_host_cgroupns: false
allowed_capabilities: [NET_ADMIN, NET_RAW, SETUID, SETGID]
allowed_devices: [/dev/net/tun, /dev/dri/renderD128, /dev/dri/renderD129, /dev/dri/renderD130, /dev/dri/renderD131, /dev/dri/renderD132, /dev/dri/renderD133, /dev/dri/renderD134, /dev/dri/renderD135, /dev/kfd, /dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2, /dev/ttyUSB3, /dev/ttyUSB4, /dev/ttyUSB5, /dev/ttyUSB6, /dev/ttyUSB7, /dev/ttyUSB8, /dev/ttyUSB9, /dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyACM3, /dev/ttyACM4, /dev/ttyACM5, /dev/ttyACM6, /dev/ttyACM7, /dev/ttyACM8, /dev/ttyACM9]
allowed_device_requests: [{driver: nvidia, allowed_capabilities: [[gpu]]}]
allowed_runtimes: [runc, runsc, runsc-hostnet, runsc-hostnet-raw]
allow_sysctls: true # the tunnel sidecar turns IPv6 off in its own namespace
require_no_new_privileges: true
deny_unconfined_seccomp: true
deny_unconfined_apparmor: true
deny_unconfined_system_paths: true
# Host folders containers may bind come from CASHPILOT_COMPOSE_DIR and
# CASHPILOT_PROXY_BIND_MOUNTS, through the proxy service's environment.
allowed_bind_mounts: []
container_remove:
allow_force: true
allow_remove_volumes: true
container_archive:
# The only folder the worker writes into a container: the tunnel
# sidecar's proxy settings.
allowed_paths: [/run/cashpilot-secret]
allow_setid: false
allow_device_nodes: false
allow_escaping_links: false
exec:
allow_privileged: false
allow_root_user: true
# The worker's exec calls send no environment. This name is never sent,
# so any Env entry (PATH, LD_PRELOAD) is refused.
allowed_env_vars: [CASHPILOT_EXEC_SENDS_NO_ENV]
allowed_commands:
- ["cat", "/run/ready"]
- ["sh", "-c", "id=$$(wget -qO- -T 5 http://127.0.0.1:4050/identities | grep -o '0x[0-9a-fA-F]\\{40\\}' | head -1) && wget -qO- -T 5 \"http://127.0.0.1:4050/identities/$$id\" && { echo; wget -qO- -T 5 \"http://127.0.0.1:4050/transactor/settle/history?page_size=1000\" || true; }"]
- ["sh", "-c", "id=$$(wget -qO- -T 5 http://127.0.0.1:4050/identities | grep -o '0x[0-9a-fA-F]\\{40\\}' | head -1) && wget -qO- -T 5 \"http://127.0.0.1:4050/identities/$$id/beneficiary\""]
- ["timeout", "12", "sh", "-c", "if m=$$(wget -qO- -Y off -T 5 http://127.0.0.1:4050/node/monitoring-status); then\n echo \"monitoring read: $$m\"\nfi\nset -o pipefail\nif s=$$(wget -qO- -Y off -T 5 \"http://127.0.0.1:4050/sessions?direction=Provided&status=Completed&page_size=100\") &&\n sorted=$$(echo \"$$s\" | sed 's/},{/}\\n{/g' | awk '\n match($$0, /\"created_at\":\"[^\"]+\"/) {\n t = substr($$0, RSTART + 14, 19); gsub(/[-T:]/, \" \", t)\n d = 0; if (match($$0, /\"duration\":[0-9]+/)) d = substr($$0, RSTART + 11, RLENGTH - 11)\n print mktime(t) + d, $$0\n }' | sort -rn); then\n [ -z \"$$sorted\" ] || echo \"$$sorted\" | head -5\n echo \"sessions read: all\"\nfi"]
- ["sh", "-c", "T=\"\"; command -v timeout >/dev/null 2>&1 && T=\"timeout 5\"; $$T iptables-nft -t nat -S MYST 2>/dev/null; if grep -qx nat /proc/net/ip_tables_names 2>/dev/null; then $$T iptables-legacy -t nat -S MYST 2>/dev/null; $$T iptables -t nat -S MYST 2>/dev/null; else case \"$$($$T iptables -V 2>/dev/null)\" in *nf_tables*) $$T iptables -t nat -S MYST 2>/dev/null;; esac; fi"]
- ["cat", "/etc/anon/anonrc"]
image_pull:
allow_all_registries: true # catalog and custom services come from many registries
network:
# The LAN fence (app/lan_fence.py) creates its bridge with three driver
# options (interface name, no masquerade, no inter-container traffic) and
# moves an earner across with a forced disconnect. Custom drivers, swarm
# scope, custom IPAM and endpoint settings stay refused.
allow_driver_options: true
allow_disconnect_force: true
volume:
# Plain local volumes only: driver options could point one at a host folder.
allow_custom_drivers: false
allow_driver_opts: false
# The worker sees and touches only what carries the owner label below: what
# it created through this proxy, and what app/owner_migrate.py labelled. The
# UI's container and its data volume never carry it.
ownership:
owner: worker
label_key: cashpilot.deployed-by
# Images carry no owner: one pulled for an earner is shared with the host.
allow_unowned_images: true
allow_cross_owner_namespace_sharing: false
rules:
- {match: {method: GET, path: "/_ping"}, action: allow}
- {match: {method: HEAD, path: "/_ping"}, action: allow}
- {match: {method: GET, path: "/version"}, action: allow}
- {match: {method: GET, path: "/info"}, action: allow}
- {match: {method: GET, path: "/containers/json"}, action: allow}
- {match: {method: GET, path: "/containers/*/json"}, action: allow}
- {match: {method: POST, path: "/containers/create"}, action: allow}
- {match: {method: POST, path: "/containers/*/start"}, action: allow}
- {match: {method: POST, path: "/containers/*/stop"}, action: allow}
- {match: {method: POST, path: "/containers/*/restart"}, action: allow}
- {match: {method: POST, path: "/containers/*/pause"}, action: allow}
- {match: {method: POST, path: "/containers/*/unpause"}, action: allow}
- {match: {method: POST, path: "/containers/*/wait"}, action: allow}
- {match: {method: POST, path: "/containers/*/rename"}, action: allow}
- {match: {method: DELETE, path: "/containers/*"}, action: allow}
- {match: {method: GET, path: "/containers/*/logs"}, action: allow}
- {match: {method: GET, path: "/containers/*/stats"}, action: allow}
- {match: {method: GET, path: "/containers/*/archive"}, action: allow}
- {match: {method: PUT, path: "/containers/*/archive"}, action: allow}
- {match: {method: POST, path: "/containers/*/exec"}, action: allow}
- {match: {method: POST, path: "/exec/*/start"}, action: allow}
- {match: {method: GET, path: "/exec/*/json"}, action: allow}
- {match: {method: GET, path: "/images/**/json"}, action: allow}
- {match: {method: POST, path: "/images/create"}, action: allow}
- {match: {method: GET, path: "/networks"}, action: allow}
- {match: {method: GET, path: "/networks/*"}, action: allow}
- {match: {method: POST, path: "/networks/create"}, action: allow}
- {match: {method: POST, path: "/networks/*/connect"}, action: allow}
- {match: {method: POST, path: "/networks/*/disconnect"}, action: allow}
- {match: {method: DELETE, path: "/networks/*"}, action: allow}
- {match: {method: POST, path: "/volumes/create"}, action: allow}
- {match: {method: GET, path: "/volumes/*"}, action: allow}
- {match: {method: DELETE, path: "/volumes/*"}, action: allow}
- {match: {method: "*", path: "/**"}, action: deny, reason: "the CashPilot worker does not use this Docker API call"}
# END socket proxy policy
यह असली फ़ाइल है
ऊपर का ब्लॉक रिपॉज़िटरी की docker-compose.yml से ज्यों का त्यों शामिल किया गया है,
इसलिए यह असल में शिप होने वाली फ़ाइल से अलग नहीं हो सकता। पहले इसका
हाथ से कॉपी किया गया संस्करण वर्कर का Docker socket वाला API हर
इंटरफ़ेस पर प्रकाशित करता था और :latest पिन करता था, और
सुरक्षा डिफ़ॉल्ट पेज इन दोनों से मना करता है।
Docker socket तक पहुँच
वर्कर सेवा कंटेनरों को Docker से संभालता है, पर वह /var/run/docker.sock माउंट नहीं करता। cashpilot-socket-proxy कंटेनर socket रखता है और वर्कर को केवल वही कॉल आगे देता है जो वह करता है, privileged कंटेनरों और होस्ट के उन फ़ोल्डरों के bind को मना करता है जिन्हें आपने सूची में नहीं डाला (यह क्या मना करता है)। ऐप के अंदर का अपडेट वैकल्पिक है: यह केवल तभी चलता है जब compose फ़ाइल के बगल की .env में CASHPILOT_COMPOSE_DIR=<this folder> हो, और यह सेटिंग कंटेनरों को उस फ़ोल्डर को bind करने देती है, जिससे proxy कमज़ोर होता है (इसकी कीमत)। इसे सेट न करें और docker compose pull && docker compose up -d से अपडेट करें। वर्कर फिर भी होस्ट के हर कंटेनर को नियंत्रित करता है, इसलिए सबसे अच्छी सुरक्षा के लिए CashPilot को किसी अलग मशीन या VLAN पर चलाएँ।
सीक्रेट कुंजी को बनाए रखना
क्रेडेंशियल CASHPILOT_ENCRYPTION_KEY से एन्क्रिप्ट होते हैं, CASHPILOT_SECRET_KEY से नहीं, जो केवल लॉगिन सेशन पर हस्ताक्षर करती है। एन्क्रिप्शन कुंजी पहली बार चलने पर अपने आप बनती है और /data/.fernet_key में रखी जाती है। उस फ़ाइल का बैकअप लें। अगर वॉल्यूम उसके बिना फिर से बनाया जाता है, तो नई कुंजी बनती है और हर सहेजा गया क्रेडेंशियल हमेशा के लिए अपठनीय हो जाता है। CASHPILOT_ENCRYPTION_KEY सेट करना उस बैकअप को पुनर्स्थापित करने के लिए है; कुंजी फ़ाइल हमेशा जीतती है, इसलिए ठीक चल रहे इंस्टेंस पर इसे सेट करने से कुछ नहीं बदलता।
UI में पासवर्ड और सीक्रेट
अपना पासवर्ड कभी भी अवतार मेनू -> Change password (पासवर्ड बदलें) से बदलें (सभी भूमिकाओं के लिए उपलब्ध); इससे आपके दूसरे सेशन साइन आउट हो जाते हैं। Settings (सेटिंग्स) में सहेजे गए सीक्रेट केवल-लिखने वाले हैं: बदलने के लिए नया मान डालें, या मौजूदा मान रखने के लिए फ़ील्ड खाली छोड़ दें। सहेजे गए क्रेडेंशियल कभी ब्राउज़र को वापस नहीं भेजे जाते।
CashPilot अपडेट करना¶
compose फ़ाइल एक major.minor श्रृंखला पिन करती है, जैसे drumsergio/cashpilot:X.Y, इसलिए pull उस श्रृंखला का सबसे नया पैच लाता है:
docker compose pull सबसे नई प्रकाशित इमेज लाता है और up -d केवल उन
कंटेनरों को फिर से बनाता है जिनकी इमेज बदली है। साथ आने वाली compose फ़ाइलें
pull_policy: always सेट करती हैं, इसलिए केवल docker compose up -d भी पहले
सबसे नई इमेज खींचेगा।
डैशबोर्ड से। Settings (सेटिंग्स), About and updates (परिचय और अपडेट) यही दो
कमांड आपके लिए एक अल्पकालिक सहायक कंटेनर से चलाता है। सहायक आपकी
compose फ़ाइलें और उनके बगल की .env पढ़ता है (या वे फ़ाइलें जो आपने
--env-file से दी थीं), कभी वह शेल नहीं जिससे आपने CashPilot शुरू किया था। मान लीजिए आपने इसे CASHPILOT_UI_PORT=8088 docker compose up -d से शुरू किया।
अपडेट डैशबोर्ड को वापस 8080 पर ले आता, इसलिए वह रुक जाता है और इसके बजाय
आपको कारण बताता है। वह मान .env में डालें और बटन काम करने लगेगा।
आपको फिर से build करने की ज़रूरत नहीं है
CashPilot Docker Hub पर पहले से बनी multi-arch इमेज देता है
(drumsergio/cashpilot,
drumsergio/cashpilot-worker)।
docker compose build / --build तभी काम का है जब आप जानबूझकर
docker-compose.build.yml से सोर्स से build करते हैं। सामान्य इंस्टॉल के लिए
pull + up -d ही पूरी और सही अपडेट प्रक्रिया है।
किसी खास संस्करण को पिन करना¶
किसी एक सटीक रिलीज़ पर रहने के लिए docker-compose.yml में X.Y श्रृंखला टैग को
पूरे रिलीज़ टैग X.Y.Z से बदलें, drumsergio/cashpilot और
drumsergio/cashpilot-worker दोनों पर (दोनों पर हमेशा एक ही टैग),
और pull_policy: always हटा दें। टैग
Docker Hub पर देखें।
किसी नई श्रृंखला पर जाने के लिए दोनों टैग बदलें: पहले UI होस्ट पर, फिर हर वर्कर होस्ट पर। पहले UPGRADING.md पढ़ें, क्योंकि 3.0 जैसे major रिलीज़ के अपने चरण होते हैं।
अपडेट को स्वचालित करना (वैकल्पिक)¶
अगर आप बिना हाथ लगाए अपडेट चाहते हैं, तो किसी शेड्यूलर से यही दो कमांड चलवाएँ, जैसे रोज़ की एक cron एंट्री से:
या CashPilot कंटेनरों पर Watchtower या Diun जैसा कोई auto-updater चलाएँ। ये वैकल्पिक हैं। CashPilot अपने साथ कोई updater नहीं देता।
पुरानी इमेज साफ़ करना¶
CashPilot किसी इमेज को केवल तब हटाता है जब किसी ऐप इमेज अपडेट ने उसकी जगह ले ली हो, और केवल ऐसे वर्कर पर जिसके पास सीधा Docker socket हो। वरना हर अपडेट और हर फिर से डिप्लॉय पिछली इमेज को डिस्क पर छोड़ सकता है। तीन सर्वर वाले एक टेस्ट फ़्लीट पर पुरानी CashPilot और कमाई ऐप इमेज कुल मिलाकर लगभग 3 GB थीं। यह उसी होस्ट पर दूसरे प्रोग्रामों के आम तौर पर छोड़े गए डेटा के मुकाबले कम है, इसलिए पूरे होस्ट को देखें:
Images लाइन पर RECLAIMABLE मान वह है जो Docker खाली कर सकता है।
CashPilot यह आपके लिए क्यों नहीं करता। वर्कर socket proxy के ज़रिए Docker तक पहुँचता है। इमेज के मामले में proxy उसे एक इमेज खींचने और नाम से एक इमेज पढ़ने देता है, और कुछ नहीं। वह होस्ट की इमेज की सूची नहीं देख सकता और किसी को हटा नहीं सकता। जो वर्कर ऐसा कर पाता, वह होस्ट के हर दूसरे प्रोग्राम की इमेज भी देख और हटा पाता। देखें proxy क्या मना करता है।
चरण 1: dangling इमेज हटाएँ। dangling इमेज का कोई टैग नहीं होता और कोई
कंटेनर उसे इस्तेमाल नहीं करता, न चलता हुआ न रुका हुआ। किसी बदलते टैग पर अपडेट, जैसे
X.Y (एक श्रृंखला, जैसी compose फ़ाइलें पिन करती हैं), latest या कोई digest, ठीक यही इमेज पीछे छोड़ता है:
यह उस इमेज को भी हटा देता है जिसे आप किसी बदलते टैग पर अपडेट से पहले चला रहे थे:
उस श्रृंखला की नई इमेज आते ही पुरानी का कोई टैग नहीं रहता। वापस जाने का रास्ता रखने के लिए
अपडेट से पहले सटीक संस्करण लिख लें (साइडबार के नीचे वह दिखता है), ताकि
आप drumsergio/cashpilot:<X.Y.Z> फिर से खींच सकें। या compose फ़ाइल को
किसी सटीक X.Y.Z टैग पर पिन करें; तब पुरानी इमेज अपना टैग रखती है और चरण 2 लागू होता है।
Docker हटाने से पहले पूछता है। cron एंट्री में सवाल छोड़ने के लिए --force जोड़ें।
इससे और कुछ नहीं बदलता:
-a न जोड़ें
docker image prune -a हर वह इमेज हटा देता है जिसे अभी कोई कंटेनर इस्तेमाल
नहीं कर रहा, dangling हो या टैग वाली। इसमें उन स्टैक की इमेज भी आती हैं जिन्हें आपने जानबूझकर
रोका है और वे इमेज भी जिन्हें आपने स्थानीय रूप से build किया है और फिर से खींच नहीं सकते।
चरण 2: पुराने पिन किए गए टैग हटाएँ। किसी संस्करण पर पिन की गई इमेज नए संस्करण पर
जाने के बाद भी अपना टैग रखती है, इसलिए prune उसे छोड़ देता है। CashPilot की ये इमेज
पिन की हुई हैं:
| रिपॉज़िटरी | इसे क्या पिन करता है |
|---|---|
drumsergio/cashpilot |
compose फ़ाइल (कोई पुरानी श्रृंखला, या आपका पिन किया सटीक संस्करण) |
drumsergio/cashpilot-worker |
compose फ़ाइल, ऊपर की तरह |
drumsergio/cashpilot-tunnel |
वर्कर, हर वर्कर संस्करण का एक टैग |
drumsergio/cashpilot-earnapp |
EarnApp की कैटलॉग एंट्री |
drumsergio/cashpilot-anyone |
Anyone Protocol की कैटलॉग एंट्री |
यही बात उस सेवा की इमेज पर लागू होती है जिसे आपने हटा दिया: उसका टैग तब तक रहता है जब तक आप उसे नहीं हटाते। digest से पिन की गई कैटलॉग इमेज, जैसे MystNodes या ProxyBase, नई इमेज के आने पर अपना टैग खो देती है, इसलिए चरण 1 उसे पहले ही संभाल लेता है।
पहले वे टैग सूचीबद्ध करें जिन्हें कोई कंटेनर इस्तेमाल नहीं करता। यह उदाहरण वर्कर इमेज के लिए है।
तालिका की किसी दूसरी रिपॉज़िटरी के लिए repo बदलें:
repo=drumsergio/cashpilot-worker
used=$(docker ps -a --format '{{.Image}}')
docker image ls "$repo" --format '{{.Repository}}:{{.Tag}}' | grep -vxF "$used"
फिर हर पुराना टैग नाम से हटाएँ, एक बार में एक:
-f न जोड़ें। इसके बिना Docker ऐसी इमेज हटाने से मना करता है जिसे कोई
कंटेनर अभी भी इस्तेमाल करता है, चलता हुआ या रुका हुआ, और
conflict: unable to delete लिखता है। जब यह दिखे, तो इमेज रखें। जो टैग
आप चला रहे हैं और उससे पहले वाला टैग रखें, ताकि आप अब भी एक संस्करण पीछे जा सकें।
केवल उन दोनों से पुराने टैग हटाएँ।
डैशबोर्ड का Host disk (होस्ट डिस्क) कॉलम उस फ़ाइल सिस्टम की खाली जगह दिखाता है जिस पर
वर्कर का /data है। इमेज आम तौर पर उसी फ़ाइल सिस्टम पर, Docker के data root के नीचे
होती हैं, पर हमेशा नहीं। docker info --format '{{.DockerRootDir}}'
Docker का data root दिखाता है। containerd image store के साथ, जो नए
Docker Engine 29 इंस्टॉल पर डिफ़ॉल्ट है, इमेज इसके बजाय containerd के root के नीचे होती हैं,
आम तौर पर /var/lib/containerd। docker info --format '{{.Driver}}'
containerd image store के लिए overlayfs और पुराने वाले के लिए overlay2 लिखता है।
उस फ़ाइल सिस्टम की खाली जगह जाँचें जिस पर लागू होने वाली डायरेक्टरी है।
समर्थित सेवाएँ¶
CashPilot पाँच श्रेणियों में 60 सेवाओं का समर्थन करता है जो सक्रिय या बीटा में हैं:
- बैंडविड्थ साझा करना (19): निष्क्रिय आय के लिए अपनी इंटरनेट बैंडविड्थ साझा करें
- DePIN (16): विकेंद्रीकृत भौतिक इन्फ्रास्ट्रक्चर नेटवर्क
- GPU कंप्यूट (7): AI और कंप्यूट कामों के लिए अपना GPU किराए पर दें
- स्टोरेज (3): विकेंद्रीकृत स्टोरेज नेटवर्क पर डिस्क स्पेस साझा करें
- माइनिंग (14): कोई miner डिप्लॉय करें या भुगतान पते से किसी pool पर नज़र रखें (माइनिंग)
इनमें से 30 को Docker के ज़रिए अपने आप डिप्लॉय और संभाला जा सकता है। कैटलॉग बाकी 30 पर नज़र रखता है (19 ब्राउज़र या डेस्कटॉप ऐप, 7 GPU नोड, 4 माइनिंग pool)। जहाँ कलेक्टर मौजूद है, वहाँ CashPilot उनके बैलेंस पढ़ता है।
पूरा कैटलॉग सेवा गाइड सेक्शन में देखें।
अगले कदम¶
- यह कैसे काम करता है -- UI + वर्कर के बँटवारे वाला डिज़ाइन समझें
- फ़्लीट प्रबंधन -- कई सर्वरों पर डिप्लॉय करें
- अपने घरेलू नेटवर्क की सुरक्षा -- कंटेनरों को अपने LAN से दूर रखें, और जानें कि gVisor कब मदद करता है
- सेवा गाइड -- हर सेवा के लिए विस्तृत सेटअप निर्देश
- CashPilot को पूरी तरह हटाना -- इसकी बनाई हर चीज़ हटाएँ, फिर से शुरू करने के लिए या छोड़ने के लिए