mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-20 00:03:51 +00:00
Docker expects the port to be a string
This commit is contained in:
committed by
Pablo Carranza Vélez
parent
3c4318893a
commit
e9cbeea11e
@ -82,7 +82,7 @@ exports.start = start = (app) ->
|
|||||||
console.log('Starting container:', app.imageId)
|
console.log('Starting container:', app.imageId)
|
||||||
ports = {}
|
ports = {}
|
||||||
if port?
|
if port?
|
||||||
ports[port + '/tcp'] = [ HostPort: port ]
|
ports[port + '/tcp'] = [ HostPort: String(port) ]
|
||||||
container.startAsync(
|
container.startAsync(
|
||||||
Privileged: true
|
Privileged: true
|
||||||
PortBindings: ports
|
PortBindings: ports
|
||||||
|
Reference in New Issue
Block a user