lib.docker.common
get-published-port
added in 4.1
(get-published-port container-id port)gets the host port published for a container port
(get-published-port cid 8080) => 56108
has-container?
added in 4.0
(has-container? {:keys [id group], :or {group "testing"}})checks that a container exists
list-containers
added in 4.0
(list-containers)(list-containers opts tail)gets all local containers
(list-containers) => vector?
start-container
added in 4.0
(start-container {:keys [group id image cmd flags labels volumes environment ports expose remove detached no-host], :as m, :or {remove true, detached true, group "testing"}} & [repeat])starts a container
stop-container
added in 4.0
(stop-container {:keys [group id], :as m, :or {group "testing"}})stops a container