Skip to content

VQComms/ReDock

Repository files navigation

Build status NuGet

ReDock

ReDock is a C# wrapper around the docker remote API. It can be used to manage your docker host remotely by creating/running/removing images and containers using C#.

Example usage

//connect to the docker remote
var client = new DockerClient("http://docker.local:2376");

//list all containers
var allContainers = await client.ListContainers();

//pull the images
var statusUpdate = await client.CreateImage("mono", "latest");

//create the container
var container = await client.CreateContainer(new CreateContainerOptions("mono", true, new [] { 80, 443 }));

//start the container we just created
var containerStartResponse = await client.StartContainer(container.Id);

//kill your docker container
await client.KillContainer(container.Id);

About

A C# Docker remote API wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published