Skip to content

Commit aa3580d

Browse files
authored
Merge pull request #13 from fmartinou/fix/fix_container_name
Fix container_name
2 parents aa3450d + 87c68e2 commit aa3580d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/services.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,8 @@ module.exports = async function (docker, projectName, recipe, output, options) {
142142
if (service.volumes) {
143143
servicesTools.buildVolumes(service.volumes, opts);
144144
}
145-
146-
if (service.name !== undefined) {
147-
opts.Name = service.container_name || serviceName;
145+
if (service.container_name !== undefined) {
146+
opts.name = service.container_name;
148147
}
149148
if (service.domainname !== undefined) {
150149
opts.Domainname = service.domainname;

0 commit comments

Comments
 (0)