d11wtq / dockerpty

Pseudo-tty handler for docker Python client
https://github.com/d11wtq/dockerpty
Apache License 2.0
156 stars 62 forks source link

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

Open jdelic opened 8 years ago

jdelic commented 8 years ago

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?