docker

plexus 2024-06-07T11:28:32.112059Z

Anyone have an example with a mounted file/directory?

lispyclouds 2024-06-07T11:40:00.679899Z

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

lispyclouds 2024-06-07T11:44:18.311179Z

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
plexus 2024-06-07T11:44:37.654949Z

thanks!