Add NetworkMode to bake target#863
Conversation
Allows specification of network mode in a bake target. Fixes docker#848 Signed-off-by: Zachary Povey <[email protected]>
|
I wonder if we should leave it only for compose files for now. Using |
|
@tonistiigi - happy to change it to just compose files, should I do that? My use case for this is backwards compatibility with |
I think so. cc @crazy-max |
Yes sgtm |
Signed-off-by: Zachary Povey <[email protected]>
|
Ok, thanks both :) @tonistiigi I've pushed a commit removing support from HCL/JSON files. Did you also want me to remove the ability to specify it via a cmd line override with |
| case "network": | ||
| t.NetworkMode = &o.Value |
There was a problem hiding this comment.
Did you also want me to remove the ability to specify it via a cmd line override with
--set?
Yes remove the override for this case.
There was a problem hiding this comment.
Ok that's done now 👍
Signed-off-by: Zachary Povey <[email protected]>
|
@tonistiigi @crazy-max - think this is good to go now? |
Allows specification of network mode in a bake target.
Fixes #848
Signed-off-by: Zachary Povey [email protected]