lazydocker/pkg/commands
Pieter van de Bruggen a4bd90ff8a Correlate Services and Containers by Service Name
The config hash ends up not being a unique identifier of a Service.  Additionally, Services may have multiple associated Containers.

``` yaml
# Sample docker-compose.yml
version: "2.2"

services:
  named-service:
    container_name: 'named-container'
    image: 'alpine'
    command: 'sh -c "while :; do sleep 1; done"'

  anonymous-service:
    image: 'alpine'
    command: 'sh -c "while :; do sleep 1; done"'

  scaled-service:
    image: 'alpine'
    scale: 3
    command: 'sh -c "while :; do sleep 1; done"'
```

``` bash
$ docker-compose config --hash="*"
named-service e6e7c4564dfc435ba96725098c62e6b6cf8da9f0b76b0a08be2baddedad6d007
anonymous-service 254f4815ef36bc9fcc2ce80f82278187c9e233309a4106951551f3692657ce9c
scaled-service 254f4815ef36bc9fcc2ce80f82278187c9e233309a4106951551f3692657ce9c
```

This commit changes how Services are discovered (`docker-compose config --services`), how they're associated (by Container ID, rather than config hash or name), and allows for Services to reference multiple Containers (though only the first is directly used for anything at this time).
2019-07-23 13:42:18 -07:00
..
container.go adjust code to newer API 2019-07-05 14:18:44 +02:00
container_stats.go Simplified code a bit 2019-07-19 04:59:32 +02:00
docker.go Correlate Services and Containers by Service Name 2019-07-23 13:42:18 -07:00
dummies.go type the translations 2019-06-05 22:20:30 +10:00
errors.go clean some things up 2019-06-09 10:03:04 +10:00
image.go adjust code to newer API 2019-07-05 14:18:44 +02:00
os.go Simplified return and bool check code 2019-07-19 04:54:33 +02:00
os_default_platform.go repurpose lazygit code 2019-05-12 10:32:02 +10:00
os_test.go Removed some lazygit code 2019-07-06 22:27:52 +02:00
os_windows.go repurpose lazygit code 2019-05-12 10:32:02 +10:00
service.go Correlate Services and Containers by Service Name 2019-07-23 13:42:18 -07:00
volume.go better support for custom commands 2019-06-10 20:14:44 +10:00