Liking cljdoc? Tell your friends :D

sisyphus.docker


attach-logsclj

(attach-logs docker id)
(attach-logs docker id out err)
source

attach-paramsclj

(attach-params)
source

build-configclj

(build-config config)

Given a config map for running a docker container, create and return the config object required by the java docker client. Options for config are:

  • :ports - a mapping of port numbers from outside to inside the container.
  • :mounts - a mapping of paths from outside to inside the container
  • :env - any environment variables that need to be set inside the container.
  • :working-dir - the working dir for the execution inside the container.
  • :user - user who will perform the commands inside the container.
  • :image - what docker image to use to build the container.
  • :command - the command to run inside the container.
Given a config map for running a docker container, create and return the config
object required by the java docker client. Options for config are:
  * :ports - a mapping of port numbers from outside to inside the container.
  * :mounts - a mapping of paths from outside to inside the container
  * :env - any environment variables that need to be set inside the container.
  * :working-dir - the working dir for the execution inside the container.
  * :user - user who will perform the commands inside the container.
  * :image - what docker image to use to build the container.
  * :command - the command to run inside the container.
sourceraw docstring

connect!clj

(connect! config)

Connect to the docker service provided by (:uri config).

Connect to the docker service provided by (:uri config).
sourceraw docstring

create!clj

(create! docker)
(create! docker options)

Create a docker container from the given options and return the container id.

Create a docker container from the given options and return the container id.
sourceraw docstring

decode-bytesclj

(decode-bytes bytes)
source

default-optionsclj

source

docker-logsclj

(docker-logs docker id)
source

exec!clj

(exec! docker id command)

Execute the given command in a running container.

Execute the given command in a running container.
sourceraw docstring

exec-streamsclj

(exec-streams)
source

exit-codeclj

(exit-code info)
source

exposed-portsclj

(exposed-ports ports)

Find a list of exposed ports given by the provided port mapping.

Find a list of exposed ports given by the provided port mapping.
sourceraw docstring

infoclj

(info docker id)
source

iteration->seqclj

(iteration->seq iteration)
source

kill!clj

(kill! docker id)
source

logsclj

(logs docker id)
source

logs-seqclj

(logs-seq logs)

Convert a docker-client ^LogStream to a seq of lines.

Convert a docker-client ^LogStream to a seq of lines.
sourceraw docstring

logs-streamsclj

(logs-streams)
source

mount-mappingclj

(mount-mapping mounts)

Generate a formatted mapping string for the given mount points between local and container paths.

Generate a formatted mapping string for the given mount points
between local and container paths.
sourceraw docstring

port-mappingclj

(port-mapping ports)

Create a mapping of local ports to ports internal to the docker container.

Create a mapping of local ports to ports internal to the docker container.
sourceraw docstring

pull!clj

(pull! docker image)

Pull the docker image given by the image argument.

Pull the docker image given by the `image` argument.
sourceraw docstring

read-fully!clj

(read-fully! docker id)
source

remove!clj

(remove! docker id)
source

run-container!clj

(run-container! docker options)

Run a container with the given options. If :detach is provided, detach the running container from the main thread.

Run a container with the given options. If :detach is provided, detach the running
container from the main thread.
sourceraw docstring

start!clj

(start! docker id)

Start the docker container with the given id.

Start the docker container with the given id.
sourceraw docstring

stop!clj

(stop! docker id)
source

wait!clj

(wait! docker id)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close