dart_docker 0.0.1 dart_docker: ^0.0.1 copied to clipboard
A Dart client for the Docker API via local unix socket.
import 'package:dart_docker/dart_docker.dart' as docker;
void main() async {
final api = docker.DockerSocketClient();
final images = await api.image.imageList();
print(images);
await api.container.containerCreate(docker.ContainerCreateRequest(
image: 'dart-slim-stable:latest',
cmd: ['echo', 'hello'],
));
}