fix(core): update

This commit is contained in:
2019-09-20 16:29:43 +02:00
parent 5cf80944fe
commit 6c5e5644b1
3 changed files with 11 additions and 9 deletions

View File

@ -137,6 +137,10 @@ export class DockerImage {
// get stuff
public async getVersion() {
return this.Labels.version;
if (this.Labels && this.Labels.version) {
return this.Labels.version;
} else {
return 'x.x.x';
}
}
}

View File

@ -92,8 +92,8 @@ export class DockerService {
const containerPort = portArray[1];
ports.push({
Protocol: 'tcp',
PublishedPort: parseInt(containerPort, 10),
TargetPort: parseInt(hostPort, 10)
PublishedPort: parseInt(hostPort, 10),
TargetPort: parseInt(containerPort, 10)
});
}