Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#191 Docker Compose support: first sort by compose project and then b…
…y name In 99% of cases container name anyway contains its compose project name. For example we have a folder wp which has docker-compose.yaml with two services: db and wordpress. Then after docker-compose up container names will be: wp_wordpress_1 and wp_db_1. But in docker-compose.yaml for a specific service may be explicitly set `container_name` e.g. for wordpress service it may be just "blog". Or some other container that is not part of compose project may have a similar name like wp_admin. Then on sorting by name we'll see: blog <- part of wp compose project wp_admin <- NOT part of wp compose project wp_db <- part of wp compose project To keep container always together on name sorting we'll first sort by compose project and only then by container name inside of the project. Thus we'll always have: wp_admin blog wp_db In this case blog and wp_db was sorted separately.
- Loading branch information