(config-of image)
(config-of image cmd)
(config-of image cmd env-vars)
(config-of image cmd env-vars port-bindings working-dir user)
(ContainerStats->Map stats name)
Will turn the stats into just cpu and memory stats, in a similar output 'docker stats' gives
Will turn the stats into just cpu and memory stats, in a similar output 'docker stats' gives
(cpu-percentage old-map new-map name)
Will deliver the percentage cpu time used compared to cpu available. Takes the difference with the previous call, might sometimes give 0 when called repeatedly. Will always return nil on the first call.
Will deliver the percentage cpu time used compared to cpu available. Takes the difference with the previous call, might sometimes give 0 when called repeatedly. Will always return nil on the first call.
(format-id id)
Return docker SHA256 ids in the standard length
Return docker SHA256 ids in the standard length
(mem-mib mem-stats)
Returns the memory taken by the container in MiB
Returns the memory taken by the container in MiB
(mem-pct mem-stats)
Returns the memory taken as percentage of the total available memory
Returns the memory taken as percentage of the total available memory
(sh-tokenize! command)
Tokenizes a shell command given as a string into the command and its args. Either returns a list of tokens or throws an IllegalStateException.
Sample input: sh -c 'while sleep 1; do echo "${RANDOM}"; done' Output: [sh, -c, while sleep 1; do echo "${RANDOM}"; done]
Tokenizes a shell command given as a string into the command and its args. Either returns a list of tokens or throws an IllegalStateException. Sample input: sh -c 'while sleep 1; do echo \"${RANDOM}\"; done' Output: [sh, -c, while sleep 1; do echo "${RANDOM}"; done]
(taken-mem-bytes mem-stats)
Returns the memory taken by the container, excluding the cache as that could be freed when needed
Returns the memory taken by the container, excluding the cache as that could be freed when needed
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close