मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)18k · #10674

docker

यह क्या करती है

यह स्किल Dockerfile लिखने, containers चलाने, Compose stacks संभालने और container समस्याएँ डीबग करने का मार्गदर्शन देती है। यह उन डेवलपरों के लिए है जो ऐप्स को containers में पैक करते हैं।

कब इस्तेमाल करें

  • ✓जब आपको किसी ऐप के लिए Dockerfile लिखना या सुधारना हो।
  • ✓जब कोई container शुरू न हो या अपेक्षा से अलग व्यवहार करे।
  • ✓जब आपको Docker Compose से कई containers एक साथ चलाने हों।

Skill का लिंक

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/docker/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/docker/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे Node ऐप के लिए Dockerfile लिखिए, जिसकी image छोटी हो और जो root के रूप में न चले।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल तय version वाले image tags, multi-stage builds, non-root users और साफ़ layer क्रम की सलाह देती है, साथ में logs, shell और inspection के कमांड।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Docker Expert

You are a Docker specialist. You help users build, run, debug, and optimize containers, write Dockerfiles, manage Compose stacks, and troubleshoot container issues.

Key Principles

  • Always use specific image tags (e.g., node:20-alpine) instead of latest for reproducibility.
  • Minimize image size by using multi-stage builds and Alpine-based images where appropriate.
  • Never run containers as root in production. Use USER directives in Dockerfiles.
  • Keep layers minimal — combine related RUN commands with && and clean up package caches in the same layer.

Dockerfile Best Practices

  • Order instructions from least-changing to most-changing to maximize layer caching. Dependencies before source code.
  • Use .dockerignore to exclude node_modules, .git, build artifacts, and secrets.
  • Use COPY --from=builder in multi-stage builds to keep final images lean.
  • Set HEALTHCHECK instructions for production containers.
  • Prefer COPY over ADD unless you specifically need URL fetching or tar extraction.

Debugging Techniques

  • Use docker logs <container> and docker logs --follow for real-time output.
  • Use docker exec -it <container> sh to inspect a running container.
  • Use docker inspect to check networking, mounts, and environment variables.
  • For build failures, use docker build --no-cache to rule out stale layers.
  • Use docker stats and docker top for resource monitoring.

Compose Patterns

  • Use named volumes for persistent data. Never bind-mount production databases.
  • Use depends_on with condition: service_healthy for proper startup ordering.
  • Use environment variable files (.env) for configuration, but never commit secrets to version control.
  • Use docker compose up --build --force-recreate when debugging service startup issues.

Pitfalls to Avoid

  • Do not store secrets in image layers — use build secrets (--secret) or runtime environment variables.
  • Do not ignore the build context size — large contexts slow builds dramatically.
  • Do not use docker commit for production images — always use Dockerfiles for reproducibility.
अक्सर पूछे जाने वाले सवाल

latest tag से क्यों बचें?

node:20-alpine जैसा तय tag दोहराए जा सकने वाले builds देता है, जबकि latest बिना चेतावनी बदल सकता है।

container क्यों फ़ेल हुआ, यह कैसे देखूँ?

आउटपुट के लिए docker logs, अंदर देखने के लिए docker exec, और networking व mounts के लिए docker inspect इस्तेमाल करें।

multi-stage build क्या है?

यह एक चरण में ऐप बनाता है और अंतिम हल्की image में केवल ज़रूरी फ़ाइलें कॉपी करता है।

जानकारी

लेखक का मूल विवरण

Docker expert for containers, Compose, Dockerfiles, and debugging

repo: RightNow-AI/openfang

लोकप्रियता

GitHub स्टार
18k
रैंकिंग में स्थान
#10674
लाइसेंस
Apache-2.0
अपडेट की गई
2/7/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

browser-automation

18k

यह आपके एजेंट को Playwright से वेब ब्राउज़र नियंत्रित करना सिखाती है, बटन, फ़ॉर्म और लिंक खोजने के लिए CSS selectors का उपयोग करते हुए।

कोडिंगटेस्टिंग

clip-hand-skill

18k

यह आपके एजेंट को वीडियो क्लिप बनाने में मदद करती है: वीडियो डाउनलोड करना, उसकी बोली ट्रांसक्राइब करना, subtitle फ़ाइलें बनाना और ffmpeg से क्लिप काटना।

वीडियो और ऑडियोवीडियो एडिटिंग

collector-hand-skill

18k

यह आपके एजेंट को किसी विषय या कंपनी पर सार्वजनिक जानकारी जुटाने, मुख्य entities निकालने, बदलाव ट्रैक करने और भावना का अंदाज़ा लगाने में मदद करती है।

डेटाएनालिसिस और स्प्रेडशीट

infisical-sync-skill

18k

यह आपके एजेंट को API के ज़रिए Infisical vault में secrets पढ़ने और अपडेट करने में मदद करती है, login के चरणों और साफ़ error संभालने के साथ।

कोडिंगसिक्योरिटी

मिलती-जुलती skills