An open API service indexing awesome lists of open source software.

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

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
```