lib.docker

get-ip

added in 4.0

(get-ip container-id)

gets the ip of a container

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?

raw-command

added in 4.0

(raw-command command & [opts tail])

executes a docker command

raw-exec

added in 4.0

(raw-exec args opts)

executes a shell command

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

start-reaped

added in 4.0

(start-reaped {:keys [group id image cmd flags labels environment volumes ports remove detached], :as m, :or {group "testing"}})

starts a reaped container

start-runtime

added in 4.0

(start-runtime rt container)

starts a runtime with attached container

start-ryuk

added in 4.0

(start-ryuk)

starts the reaper

stop-all-reaped

added in 4.0

(stop-all-reaped)

stops all reaped

stop-container

added in 4.0

(stop-container {:keys [group id], :as m, :or {group "testing"}})

stops a container

stop-runtime

added in 4.0

(stop-runtime rt container)

stops a runtime with attached container

stop-ryuk

added in 4.0

(stop-ryuk)

stops the reaper