본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)10k · #12024

docker

하는 일

이 스킬은 연구나 실험 코드를 Docker 컨테이너 안에서 실행해 호스트 컴퓨터와 분리합니다. 안전하고 반복 가능한 실행을 원하는 연구자를 위한 스킬입니다.

사용하는 경우

  • ✓낯선 논문 저장소의 코드를 안전하게 실행하고 싶을 때.
  • ✓실험이 패키지를 설치하거나 시스템 설정을 바꿔서 격리해야 할 때.
  • ✓GPU나 Python 환경을 반복 가능한 방식으로 설정해야 할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Companion-Inc/feynman/blob/main/skills/docker/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 논문의 학습 코드를 Docker 컨테이너 안에서 실행해서, 제 컴퓨터의 아무것도 바뀌지 않게 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 프로젝트 폴더를 컨테이너에 마운트하고, 실험 명령을 그 안에서 실행한 뒤 결과를 같은 폴더에 다시 씁니다. 작업에 맞는 기본 이미지를 고릅니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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
자주 묻는 질문

Docker가 설치되어 있어야 하나요?

네. 명령이 Docker를 사용하므로 컴퓨터에 설치되어 있어야 합니다.

GPU를 쓸 수 있나요?

네. GPU가 필요한 작업을 위한 명령이 포함되어 있습니다.

결과는 어디에 저장되나요?

마운트된 프로젝트 폴더에 다시 기록되므로, 내 컴퓨터에서 결과를 볼 수 있습니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
10k
순위
#12024
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬