https://github.com/null-none/docker-control
Docker control functions
https://github.com/null-none/docker-control
api docker go golang rest-api sdk
Last synced: 3 months ago
JSON representation
Docker control functions
- Host: GitHub
- URL: https://github.com/null-none/docker-control
- Owner: null-none
- Created: 2023-05-25T20:26:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-19T12:50:23.000Z (about 1 year ago)
- Last Synced: 2025-01-26T09:28:29.874Z (5 months ago)
- Topics: api, docker, go, golang, rest-api, sdk
- Language: Go
- Homepage:
- Size: 53.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-controll
### Init project
```bash
go mod init example.com/example
go mod tidy
go run main.go
```### Endpoints
```
GET `/containers` - return list docker containers
GET `/images` - return list docker images
GET `/containers/stop` - stop and return all docker containers
POST `/images/pull` - pull docker image by ImageID
POST `/container/run` - run container by ContainerID
POST `/container/log` - show container log by ContainerID
```