CLI Reference¶
PeiDocker exposes two console entry points:
pei-docker-clipei-docker-gui
The GUI entry point currently exits with a deprecation message in 2.0, so the CLI is the supported path.
pei-docker-cli¶
Commands¶
| Command | Purpose |
|---|---|
create |
Create a project skeleton |
configure |
Generate docker-compose.yml and helper artifacts |
remove |
Remove images and containers created by a generated project |
Build Modes¶
PeiDocker supports three documented workflows:
stage-1-only: omitstage_2fromuser_config.yml, then configure and build/run onlystage-1two-stage Compose: keepstage_1andstage_2, configure normally, and use the default Compose build/run pathmerged build: keepstage_1andstage_2, runconfigure --with-merged, and usebuild-merged.shplusrun-merged.sh
See Build Modes for the decision table and beginner walkthroughs.
create¶
pei-docker-cli create -p <project-dir> [-e] [--quick <template>]
Options:
-p, --project-dir-e, --with-examples-q, --quick
Quick templates:
| Template | Intent |
|---|---|
minimal |
Smallest working default two-stage project with SSH |
cn-demo |
Demo project with China mirrors, Pixi, UV, and mixed storage |
cn-dev |
CPU-focused development template with China mirrors and tool installers |
cn-ml |
GPU-focused ML template with China mirrors and vision tooling |
configure¶
pei-docker-cli configure [-p <project-dir>] [-c <config>] [-f] [--with-merged]
Options:
-p, --project-dir-c, --config-f, --full-compose--with-merged
Notes:
${VAR}values are resolved duringconfigure.{{VAR}}values are preserved for Docker Compose.- If
stage_2is omitted fromuser_config.yml,configurewrites a compose file with only thestage-1service. --with-mergedgeneratesmerged.Dockerfile,merged.env,build-merged.sh, andrun-merged.sh.--with-mergedchanges the build/run workflow, not the logical meaning ofstage_1andstage_2.--with-mergedis incompatible with passthrough markers.
remove¶
pei-docker-cli remove -p <project-dir> [-y]
Options:
-p, --project-dir-y, --yes
The command parses the generated docker-compose.yml, removes containers that depend on the images first, then removes the images.
Generated Helper Scripts¶
When you run configure --with-merged, PeiDocker also writes:
build-merged.shrun-merged.shmerged.envmerged.Dockerfile
These are useful when you want a plain docker build / docker run workflow instead of docker compose.
pei-docker-gui¶
The repository still contains the GUI code, but the current command returns:
- “PeiDocker Web GUI is deprecated in 2.0 and is currently unavailable.”
Use Web GUI for the code-level tab mapping, not for an active supported workflow.