diff --git a/README.md b/README.md index dba044143b..7007ee7fd2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # swarm: docker clustering +![Docker Swarm Logo](logo.png?raw=true "Docker Swarm Logo") + ## Example usage ```bash diff --git a/api/api.go b/api/api.go index b1c22f33d6..cba36a99d2 100644 --- a/api/api.go +++ b/api/api.go @@ -84,6 +84,9 @@ func getContainersJSON(c *context, w http.ResponseWriter, r *http.Request) { if !strings.Contains(tmp.Status, "Up") && !all { continue } + if !container.Node().IsHealthy() { + tmp.Status = "Pending" + } // TODO remove the Node ID in the name when we have a good solution tmp.Names = make([]string, len(container.Names)) for i, name := range container.Names { diff --git a/logo.png b/logo.png new file mode 100644 index 0000000000..56d1148969 Binary files /dev/null and b/logo.png differ diff --git a/scheduler/filter/port.go b/scheduler/filter/port.go index 9bd2a04f6c..e6a0914e8d 100644 --- a/scheduler/filter/port.go +++ b/scheduler/filter/port.go @@ -33,7 +33,7 @@ func (p *PortFilter) Filter(config *dockerclient.ContainerConfig, nodes []*clust func (p *PortFilter) portAlreadyInUse(node *cluster.Node, requested dockerclient.PortBinding) bool { for _, c := range node.Containers() { - for _, port := range c.Info.NetworkSettings.Ports { + for _, port := range c.Info.HostConfig.PortBindings { for _, binding := range port { if binding.HostPort == requested.HostPort { // Another container on the same host is binding on the same