Skip to content

๐Ÿ‹ A Dart client for the Docker API via local unix socket.

License

Notifications You must be signed in to change notification settings

invertase/dart_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Dart Docker

A Docker API Client that connects via docker socket (/var/run/docker.sock). The minimum supported docker API is 1.44.

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:latest',
    cmd: ['echo', 'hello'],
  ));
}

Supported APIs

Note: APIS that function as streams such as container attach are not currently functional.

  • ImageApi
  • ConfigApi
  • ContainerApi
  • DistributionApi
  • ExecApi
  • NetworkApi
  • NodeApi
  • PluginApi
  • SecretApi
  • ServiceApi
  • SessionApi
  • SwarmApi
  • SystemApi
  • TaskApi
  • VolumeApi

License


Built and maintained with ๐Ÿ’› by Invertase.

ย ย Follow on Twitter

About

๐Ÿ‹ A Dart client for the Docker API via local unix socket.

Resources

License

Stars

Watchers

Forks

Languages