mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-15 02:37:27 +08:00
13 lines
206 B
Go
13 lines
206 B
Go
package services
|
|
|
|
type checkUsedPortsTask struct {
|
|
}
|
|
|
|
func (c checkUsedPortsTask) Run(i *Instance) {
|
|
if ports, err := GetUsedPorts(i); err == nil {
|
|
for _, p := range ports {
|
|
i.setUsedPort(p)
|
|
}
|
|
}
|
|
}
|