You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fig/cli/main.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -281,13 +281,13 @@ def scale(self, options):
281
281
try:
282
282
num=int(num)
283
283
exceptValueError:
284
-
raiseUserError('Number of containers for service "%s" is not a number'%service)
284
+
raiseUserError('Number of containers for service "%s" is not a '
285
+
'number'%service_name)
285
286
try:
286
287
self.project.get_service(service_name).scale(num)
287
288
exceptCannotBeScaledError:
288
289
raiseUserError('Service "%s" cannot be scaled because it specifies a port on the host. If multiple containers for this service were created, the port would clash.\n\nRemove the ":" from the port definition in fig.yml so Docker can choose a random port for each container.'%service_name)
289
290
290
-
291
291
defstart(self, options):
292
292
"""
293
293
Start existing containers.
@@ -357,5 +357,6 @@ def handler(signal, frame):
357
357
print("Gracefully stopping... (press Ctrl+C again to force)")
0 commit comments