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)
ports = {}
if port?
ports[port + '/tcp'] = [ HostPort: port ]
ports[port + '/tcp'] = [ HostPort: String(port) ]
container.startAsync(
Privileged: true
PortBindings: ports