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

This commit is contained in:
Pavel Sviderski committed 2024-12-27 21:25:33 +10:00
1 parent 042b44cbb6
commit 2a898b3eee
3 files changed
+11 -2

No files matched your search

+1
View File
@@ -268,6 +268,7 @@ func (cli *Client) runContainer(
}
}
hostConfig := &container.HostConfig{
Binds: spec.Container.Volumes,
Init: spec.Container.Init,
PortBindings: portBindings,
}