зеркало из https://github.com/Azure/iotedgedev.git
Fix issue starting local registry with customports (#349)
This commit is contained in:
Родитель
4c879b50c6
Коммит
485100cd8e
|
@ -5,20 +5,11 @@
|
|||
"name": "Python Module",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"stopOnEntry": true,
|
||||
"module": "iotedgedev.cli",
|
||||
"args": [
|
||||
"solution",
|
||||
"new",
|
||||
"test_solution"
|
||||
"push"
|
||||
],
|
||||
"debugOptions": [
|
||||
"RedirectOutput"
|
||||
],
|
||||
"env": {
|
||||
"DOTENV_FILE": ".env",
|
||||
}
|
||||
"cwd": "${workspaceFolder}/tests/test_solution"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
}
|
|
@ -43,7 +43,7 @@ class Docker:
|
|||
raise ValueError("You must specific a port for your local registry server. Expected: 'localhost:5000'. Found: " + local_server)
|
||||
|
||||
port = parts[1]
|
||||
ports = {'{0}/tcp'.format(port): int(port)}
|
||||
ports = {'5000/tcp': int(port)}
|
||||
|
||||
try:
|
||||
self.output.info("Looking for local 'registry' container")
|
||||
|
|
Загрузка…
Ссылка в новой задаче