docker 2024-06-07

Anyone have an example with a mounted file/directory?

in https://docs.docker.com/engine/api/v1.45/#tag/Container/operation/ContainerCreate the HostConfig could be used. Passing the Binds array there

of the top of my mind, something like this:

(c/invoke docker
          {:op :ContainerCreate
           :params {:name "conny"}
           :data {:Image "busybox:musl"
                   :Cmd   ["ls"]
                   :HostConfig {:Binds ["host-path:container-path"]}}})

👍 1