Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

imcompatible with docker compose 1.23 #248

Open
DeoLeung opened this issue Nov 10, 2018 · 5 comments
Open

imcompatible with docker compose 1.23 #248

DeoLeung opened this issue Nov 10, 2018 · 5 comments

Comments

@DeoLeung
Copy link

seems the container naming schema changed, which may be the cause that it can't find the containers

@DeoLeung
Copy link
Author

I roll compose back to 1.22.0 and it works

@rubenfonseca
Copy link

Took me a while to figure out why it wasn't working. I can confirm the new naming schema breaks the image.

@jorihardman
Copy link

jorihardman commented Nov 20, 2018

A workaround is to use container_name to change the name of your linked container back to what haproxy expects.

Example from my compose file:

services:
  rails:
    container_name: rails_server_rails_1
   ...

  haproxy:
    links:
      - rails
    ...

That fixed it for me in 1.23.1

@cnadeau
Copy link

cnadeau commented Nov 21, 2018

Thanks @jorihardman 🎉

one thing I had to figure out. You need to have the env var LINK_MODE:'new' for that workaround to work

the new parser handles the container_name

Introduced here (I know, a while back)

@db260179
Copy link

db260179 commented Dec 11, 2018

https://github.com/docker/compose/releases - 1.23.2 has reverted back to _1 names

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants