mirror of https://github.com/docker/docs.git
Extract a wrench accidentally left inside the engine
Signed-off-by: John Fieber <jrf@ursamaris.org>
This commit is contained in:
parent
fdaa783597
commit
6ab04a0b51
|
@ -593,7 +593,6 @@ func zeroFill(w io.Writer, n int64) error {
|
||||||
// Select an available port, trying the specified
|
// Select an available port, trying the specified
|
||||||
// port first, falling back on an OS selected port.
|
// port first, falling back on an OS selected port.
|
||||||
func getAvailableTCPPort(port int) (int, error) {
|
func getAvailableTCPPort(port int) (int, error) {
|
||||||
return 56883, nil
|
|
||||||
for i := 0; i <= 10; i++ {
|
for i := 0; i <= 10; i++ {
|
||||||
ln, err := net.Listen("tcp4", fmt.Sprintf("127.0.0.1:%d", port))
|
ln, err := net.Listen("tcp4", fmt.Sprintf("127.0.0.1:%d", port))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue