Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)10k · #12024

docker

Fungsinya

Skill ini menjalankan kode riset atau eksperimen di dalam kontainer Docker, sehingga terpisah dari mesin host. Skill ini ditujukan untuk peneliti yang menginginkan eksekusi yang aman dan dapat diulang.

Kapan dipakai

  • ✓Saat Anda ingin menjalankan kode dari repositori makalah yang belum Anda kenal dengan aman.
  • ✓Saat sebuah eksperimen memasang paket atau mengubah pengaturan sistem dan sebaiknya tetap terisolasi.
  • ✓Saat Anda membutuhkan lingkungan GPU atau Python yang disiapkan dengan cara yang dapat diulang.

Link skill

https://github.com/Companion-Inc/feynman/blob/main/skills/docker/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/Companion-Inc/feynman/blob/main/skills/docker/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Jalankan kode pelatihan makalah ini di dalam kontainer Docker agar tidak mengubah apa pun di komputer saya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill memasang folder proyek ke dalam kontainer, menjalankan perintah eksperimen di sana, dan menuliskan hasilnya kembali ke folder yang sama. Skill memilih image dasar yang sesuai untuk pekerjaan tersebut.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Docker Sandbox

Run research code inside Docker containers while Feynman stays on the host. The container gets the project files, runs the commands, and results sync back.

When to use

  • User selects "Docker Sandbox" as the execution environment in /replicate or /autoresearch
  • Running untrusted code from a paper's repository
  • Experiments that install packages or modify system state
  • Any time the user asks to run research code safely or isolated for a Feynman workflow

How it works

  1. Build or pull an appropriate base image for the research code
  2. Mount the project directory into the container
  3. Run experiment commands inside the container
  4. Results write back to the mounted directory

Running commands in a container

For Python research code (most common):

docker run --rm -v "$(pwd)":/workspace -w /workspace python:3.11 bash -c "
  pip install -r requirements.txt &&
  python train.py
"

For projects with a Dockerfile:

docker build -t feynman-experiment .
docker run --rm -v "$(pwd)/results":/workspace/results feynman-experiment

For GPU workloads:

docker run --rm --gpus all -v "$(pwd)":/workspace -w /workspace pytorch/pytorch:latest bash -c "
  pip install -r requirements.txt &&
  python train.py
"

Choosing the base image

Research type Base image
Python ML/DL pytorch/pytorch:latest or tensorflow/tensorflow:latest-gpu
Python general python:3.11
Node.js node:20
R / statistics rocker/r-ver:4
Julia julia:1.10
Multi-language ubuntu:24.04 with manual installs

Persistent containers

For iterative experiments (like /autoresearch), create a named container instead of --rm. Choose a descriptive name based on the experiment:

docker create --name <name> -v "$(pwd)":/workspace -w /workspace python:3.11 tail -f /dev/null
docker start <name>
docker exec <name> bash -c "pip install -r requirements.txt"
docker exec <name> bash -c "python train.py"

This preserves installed packages across iterations. Clean up with:

docker stop <name> && docker rm <name>

Notes

  • The mounted workspace syncs results back to the host automatically
  • Containers are network-enabled by default — add --network none for full isolation
  • For GPU access, Docker must be configured with the NVIDIA Container Toolkit
Pertanyaan umum

Apakah saya perlu memasang Docker?

Ya. Perintahnya memakai Docker, sehingga harus sudah terpasang di mesin Anda.

Bisakah skill memakai GPU?

Bisa. Skill menyertakan perintah untuk beban kerja yang membutuhkan GPU.

Di mana hasilnya disimpan?

Hasilnya ditulis kembali ke folder proyek yang dipasang, sehingga dapat Anda lihat di komputer Anda.

Detail

Deskripsi asli dari pembuat

Execute research code inside isolated Docker containers for safe replication, experiments, and benchmarks. Use when the user selects Docker as the execution environment or asks to run code safely, in isolation, or in a sandbox.

repo: Companion-Inc/feynman

Popularitas

Bintang GitHub
10k
Peringkat
#12024
Lisensi
MIT
Diperbarui
31/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa