Node Agent: Core Docker operations #1

Closed
opened 2026-03-05 18:44:12 -06:00 by jeremy · 0 comments
Owner

Implement the core /containers endpoints for the node agent service running on each node.

Tasks

  • GET /containers - list all containers (name, image, status, state)
  • POST /containers/{id}/start - start a container
  • POST /containers/{id}/stop - stop a container
  • POST /containers/{id}/restart - restart a container
  • GET /containers/{id}/logs?tail=200 - fetch last N log lines
  • POST /containers/{id}/pull - pull latest image and recreate
  • GET /health - health endpoint returning node info
  • Auto-detect whether a container is Swarm-managed or Compose-managed

Notes

  • Uses Docker SDK for Python (docker library)
  • Runs on port 8889 on each node
  • Communicates via Docker socket (/var/run/docker.sock)
Implement the core /containers endpoints for the node agent service running on each node. ## Tasks - [ ] `GET /containers` - list all containers (name, image, status, state) - [ ] `POST /containers/{id}/start` - start a container - [ ] `POST /containers/{id}/stop` - stop a container - [ ] `POST /containers/{id}/restart` - restart a container - [ ] `GET /containers/{id}/logs?tail=200` - fetch last N log lines - [ ] `POST /containers/{id}/pull` - pull latest image and recreate - [ ] `GET /health` - health endpoint returning node info - [ ] Auto-detect whether a container is Swarm-managed or Compose-managed ## Notes - Uses Docker SDK for Python (docker library) - Runs on port 8889 on each node - Communicates via Docker socket (/var/run/docker.sock)
jeremy added this to the v1.0 milestone 2026-03-05 18:44:12 -06:00
jeremy added the feature label 2026-03-05 18:44:12 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jeremy/farm-manager#1