dart_docker

Creator: coderz1093

Last updated:

0 purchases

dart_docker Image
dart_docker Images

Languages

Categories

Add to Cart

Description:

dart docker

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'],
));
}
copied to clipboard
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 #

See LICENSE







Built and maintained with 💛 by Invertase.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.