This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-05-23 19:29:36 -03:00
parent 911d56bc49
commit 3d96760a98
41 changed files with 1454 additions and 1329 deletions

View File

@@ -0,0 +1,18 @@
package pwd
import "log"
type checkUsedPortsTask struct {
}
func (c checkUsedPortsTask) Run(i *Instance) error {
if ports, err := i.docker.GetPorts(); err == nil {
for _, p := range ports {
i.setUsedPort(uint16(p))
}
} else {
log.Println(err)
return err
}
return nil
}