Skip to content

Commit

Permalink
Fix #1426 - migrate_to_labels not found
Browse files Browse the repository at this point in the history
Signed-off-by: Harald Albers <[email protected]>
  • Loading branch information
albers committed May 19, 2015
1 parent 80eaf4c commit 41315b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions compose/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,11 @@ def handler(signal, frame):
project.stop(service_names=service_names, **params)

def migrate_to_labels(self, project, _options):
"""
Recreate containers to add labels
Usage: migrate_to_labels
"""
migration.migrate_project_to_labels(project)


Expand Down
2 changes: 1 addition & 1 deletion compose/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ def check_for_legacy_containers(
"labels. As of compose 1.3.0 containers are identified with "
"labels instead of naming convention. If you'd like compose "
"to use this container, please run "
"`docker-compose --migrate-to-labels`" % (name,))
"`docker-compose migrate_to_labels`" % (name,))


def parse_restart_spec(restart_config):
Expand Down

0 comments on commit 41315b3

Please sign in to comment.