add -v|--volume to bind mount host path into a service container

This commit is contained in:
Pavel Sviderski
2024-12-27 21:25:33 +10:00
parent 042b44cbb6
commit 2a898b3eee
3 changed files with 11 additions and 2 deletions
+1
View File
@@ -268,6 +268,7 @@ func (cli *Client) runContainer(
}
}
hostConfig := &container.HostConfig{
Binds: spec.Container.Volumes,
Init: spec.Container.Init,
PortBindings: portBindings,
}