lazydocker/pkg
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
..
app Merge branch 'reworking-dockerfile' 2019-07-21 15:40:17 +02:00
commands Correlate Services and Containers by Service Name 2019-07-23 13:42:18 -07:00
config config: use xdg package instead of configdir 2019-07-13 12:56:51 +02:00
gui Correlate Services and Containers by Service Name 2019-07-23 13:42:18 -07:00
i18n Update german.go 2019-07-13 11:59:32 +02:00
log use fork of roll so that we don't crash on 429 errors 2019-06-29 20:50:24 +10:00
tasks more 2019-06-23 12:27:31 +10:00
utils Merge pull request #132 from muesli/gocritic-fixes 2019-07-19 11:08:04 +02:00