April 2017
Beginner
404 pages
9h 30m
English
The following code force removes a container from the container host:
/// <summary> /// Removes a container by Container Id /// </summary> /// <param name="id">Container Id</param> private async static Task RemoveContainer(string id) { client = new DockerClientConfiguration (new Uri(containerHostUrl)).CreateClient(); await client.Containers.RemoveContainerAsync (id, new ContainerRemoveParameters() { Force = true }); }
Read now
Unlock full access