Docker API

Container, image, network, and Compose project management.

All endpoints are prefixed with /api/docker. Admin only.


Containers

MethodPathDescription
GET/containersList containers
POST/containers/:id/startStart container
POST/containers/:id/stopStop container
POST/containers/:id/restartRestart container
DELETE/containers/:idRemove container
GET/containers/:id/logsContainer logs
GET/containers/:id/inspectInspect container
GET/containers/:id/statsContainer stats
POST/containers/createCreate container
GET/containers/:id/fsBrowse container filesystem
GET/containers/:id/fs/readRead container file

Images

MethodPathDescription
GET/imagesList images
DELETE/images/:idRemove image
GET/images/:id/inspectInspect image
GET/images/:id/historyImage layer history
POST/images/pullPull image

Networks

MethodPathDescription
GET/networksList networks
GET/networks/:idInspect network
DELETE/networks/:idRemove network

Compose Projects

MethodPathDescription
GET/compose/projects/listList Compose projects
GET/compose/:nameProject detail
POST/compose/:name/updocker-compose up
POST/compose/:name/downdocker-compose down

General

MethodPathDescription
GET/infoDocker daemon info
POST/prunePrune unused resources

WebSocket

Docker also provides a WebSocket endpoint at /ws/docker for container exec sessions.


Part of NexusPanel API Reference

← Back to Documentation