In proxy, rewrite /etc/hosts from 'weave attach', via new utility weavehosts
This commit is contained in:
1 parent
6e89b036e2
commit
3d25620d13
7 files changed
+151
-142
No files matched your search
@@ -35,8 +35,7 @@ func (i *createExecInterceptor) InterceptRequest(r *http.Request) error {
|
||||
Log.Infof("Leaving container %s alone because %s", container.ID, err)
|
||||
} else if hasWeaveWait {
|
||||
Log.Infof("Exec in container %s with WEAVE_CIDR \"%s\"", container.ID, strings.Join(cidrs, " "))
|
||||
cmd := weaveWaitEntrypoint
|
||||
options.Cmd = append(cmd, options.Cmd...)
|
||||
options.Cmd = append(weaveWaitEntrypoint, options.Cmd...)
|
||||
}
|
||||
|
||||
if err := marshalRequestBody(r, options); err != nil {
|
||||
|
||||
Reference in new issue
Block a user