import { dockerClient } from "../../docker-client" ; import Dockerode from "dockerode" ; import { Id } from "../../types" ; export const getContainerById = async ( id ) : Promise < Dockerode . Container > => { const { dockerode } = await dockerClient ; return dockerode . getContainer ( id ) ; } ;