Module brane_tsk::docker

source ·
Expand description

Defines functions that interact with the local Docker daemon.

Re-exports§

Structs§

Enums§

  • Defines the source of an image (either a file or from a repo).
  • Defines the (type of) network ot which a container should connect.

Constants§

Functions§

  • Creates a new connection to the local Docker daemon.
  • Tries to import/pull the given image if it does not exist in the local Docker instance.
  • Tries to return the (IP-)address of the container with the given name.
  • Given an image.tar file, extracts the Docker digest (i.e., image ID) from it and returns it.
  • Given an already downloaded container, computes the SHA-256 hash of it.
  • Joins the container with the given name, i.e., waits for it to complete and returns its results.
  • Launches the given job and returns its name so it can be tracked.
  • Helps any VM aiming to use Docker by preprocessing the given list of arguments and function result into a list of bindings (and resolving the the arguments while at it).
  • Tries to remove the docker image with the given name.
  • Launches the given container and waits until its completed.
  • Saves an already pulled image to some file on disk.