Antti Tupamäki
09/29/2021, 7:27 AMclient = docker.from_env()
host_config = client.api.create_host_config(binds=[
'/psql/data/:/data'])
print(host_config)
container_id = CreateContainer(command="cat /data/test",
host_config=host_config)
ended up doing
container_id = CreateContainer(command="cat /data/test", host_config={'binds': ['/psql/data/:/data']}
which works I think that part of documentation needs to update.Kevin Kho
host_config
already says it should be a dict.Antti Tupamäki
09/29/2021, 4:36 PMKevin Kho
Marvin
09/29/2021, 4:38 PM