(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:
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.
(connect! config)
Connect to the docker service provided by (:uri config).
Connect to the docker service provided by (:uri config).
(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.
(exec! docker id command)
Execute the given command in a running container.
Execute the given command in a running container.
(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.
(logs-seq logs)
Convert a docker-client ^LogStream to a seq of lines.
Convert a docker-client ^LogStream to a seq of lines.
(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.
(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.
(pull! docker image)
Pull the docker image given by the image
argument.
Pull the docker image given by the `image` argument.
(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.
(start! docker id)
Start the docker container with the given id.
Start the docker container with the given id.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close