mirror of
https://github.com/docker/docs.git
synced 2026-03-31 08:18:55 +07:00
use overlay as default in swarm
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
@@ -436,6 +436,10 @@ func postNetworksCreate(c *context, w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if request.Driver == "" {
|
||||
request.Driver = "overlay"
|
||||
}
|
||||
|
||||
response, err := c.cluster.CreateNetwork(&request)
|
||||
if err != nil {
|
||||
httpError(w, err.Error(), http.StatusInternalServerError)
|
||||
|
||||
Reference in New Issue
Block a user