Docker expects the port to be a string

This commit is contained in:
Petros Angelatos
2014-05-16 00:07:00 +01:00
committed by Pablo Carranza Vélez
parent 3c4318893a
commit e9cbeea11e

View File

@ -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