25 lines
815 B
Markdown
25 lines
815 B
Markdown
|
|
# Task ID: 142
|
||
|
|
|
||
|
|
**Title:** Docker orchestrator ephemeral container support
|
||
|
|
|
||
|
|
**Status:** pending
|
||
|
|
|
||
|
|
**Dependencies:** 140
|
||
|
|
|
||
|
|
**Priority:** medium
|
||
|
|
|
||
|
|
**Description:** Update DockerContainerManager to handle new ContainerSpec fields
|
||
|
|
|
||
|
|
**Details:**
|
||
|
|
|
||
|
|
In DockerContainerManager (src/mcpd/src/services/docker/):
|
||
|
|
1. Map restartPolicy to Docker restart policy
|
||
|
|
2. Set WorkingDir in container config
|
||
|
|
3. Create volumes as Docker volumes, add Binds/Mounts
|
||
|
|
4. For initContainers: run each sequentially before main container, fail if any init fails
|
||
|
|
5. Docker doesn't have native init container support, so implement as sequential container runs that populate shared volume
|
||
|
|
|
||
|
|
**Test Strategy:**
|
||
|
|
|
||
|
|
Unit tests: test container spec translation. Integration test: create container with init, verify volume populated before main container runs.
|