List<Container> containers = dockerClient.listContainersCmd() code example Example: docker check running containers docker ps -a