Category : docker-engine

I am using a C# API that talks to DockerEngine (Docker.DotNet) to do some things, but notably in this case, removed a stopped container. Here is my code: foreach (var container in RunningContainers) { if (container.State == "dead" || container.State == "exited") { long exitType = Client.Containers.InspectContainerAsync(container.ID).Result.State.ExitCode; if (exitType != 0) { badExitCodeCount++; } Client.Containers.RemoveContainerAsync(container.ID, ..

Read more

I try to connect to docker engine api using Docker.DotNet client. Docker is installed on Windows 10. Connection using named pipeline "npipe://./pipe/docker_engine" is working, also connection using "tcp://localhost:2375" (With enabled option: Expose daemon on tcp://localhost:2375 without TLS) but I am confused with secure connection option. Documentation is clear: var credentials = new CertificateCredentials (new X509Certificate2 ..

Read more

I know that Docker allows enabling experimental features on the daemon side in a rather simple way: Add/update /etc/docker/daemon.json: { "experimental": true } And enabling experimental features brings a couple of cool things (e.g. Metrics (Prometheus) output for basic container, image, and daemon operations) and provide early access to future product functionality. My question is ..

Read more

We have recently upgraded from docker version 17.06.0-ce to 18.09.2 on our deployment environment. Experienced container got killed suddenly after running for few days without much information in docker logs. Monitored the memory usage, and the affected containers are well below all limits (per container and also the host has enough memory free). Setup observations ..

Read more

I have seen several examples of docker network plugins running within a docker container. For example: https://github.com/gopher-net/docker-ovs-plugin This to me seems problematic. It clearly says in the docker documentation "Plugins should be started before Docker, and stopped after Docker". https://docs.docker.com/engine/extend/plugin_api/#plugin-lifecycle Am I missing something? I would much rather run my network plugin as a container ..

Read more