When container is started in host (or container) networkMode, we mount a noop weavewait, so it can continue
review feedback
This commit is contained in:
1 parent
77c7963bde
commit
ec5a1a3977
12 files changed
+106
-42
No files matched your search
@@ -53,7 +53,7 @@ func (i *createContainerInterceptor) InterceptRequest(r *http.Request) error {
|
||||
Log.Infof("Leaving container alone because %s", err)
|
||||
} else {
|
||||
Log.Infof("Creating container with WEAVE_CIDR \"%s\"", strings.Join(cidrs, " "))
|
||||
if err := i.proxy.addWeaveWaitVolume(hostConfig); err != nil {
|
||||
if err := addVolume(hostConfig, i.proxy.weaveWaitVolume, "/w", "ro"); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := i.setWeaveWaitEntrypoint(container); err != nil {
|
||||
|
||||
Reference in new issue
Block a user