dockerpty icon indicating copy to clipboard operation
dockerpty copied to clipboard

No way to specify binds for mountpoints in the container on .start()

Open jdelic opened this issue 9 years ago • 0 comments

I can't find a way to specify the binds kwarg on .start(). docker-py mandates that, to create bindmounts inside the container, the calling code follow two steps:

  1. call .create_container(volumes=[list of mountpoints]) and then
  2. call .start(binds={mountpoint: path]) to "connect" volumes to paths

I think there is no obvious way to pass the necessary parameters to dockerpty.start, right?

jdelic avatar Aug 05 '16 21:08 jdelic