How can you automate Docker container management programatically using .NET Core?
Experience Level: Junior
Tags: .NET CoreDocker
Answer
You can use Docker.DotNet NuGet package that has an implementation of Docker client so you can use it to seamelessly interact with Docker REST API.
Related Docker job interview questions
How can you rollback all changes that you did to a containerized system under test that consists of one Docker container after you finished testing of a specific test case?
Docker JuniorWhat is going to happen with your data if you stop a Docker container? Will it be lost or not?
Docker JuniorHow do you run Docker container in a detached mode?
DockerDocker CLI JuniorWhat is Docker Detached Mode good for and how do you use it?
Docker JuniorHow do you remove all stopped Docker containers, unused networks, dangling images and build caches?
DockerDocker CLI Junior