docker-lock icon indicating copy to clipboard operation
docker-lock copied to clipboard

Bug when `services.X` and `networks.X` have same name.

Open loynoir opened this issue 3 years ago • 0 comments

Bug when services.X and networks.X have same name

in 'docker-compose.yml' '2' images rewritten, but expected to rewrite '1'
version: "3.6"

networks:
  app:

services:
  build:
    pull_policy: never
    image: private/image
    build:
      dockerfile: foobar.Dockerfile

  app:
    depends_on:
      - build
    pull_policy: never
    image: private/image

OK when services.X and networks.Y

version: "3.6"

networks:
  napp:

services:
  build:
    pull_policy: never
    image: private/image
    build:
      dockerfile: foobar.Dockerfile

  app:
    depends_on:
      - build
    pull_policy: never
    image: private/image
successfully generated lockfile!
successfully rewrote files referenced by lockfile!

loynoir avatar Jul 08 '22 12:07 loynoir