Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'list' object has no attribute 'items' for all docker-compose commands #1677

Closed
tippenein opened this issue Jul 9, 2015 · 4 comments

Comments

@tippenein
Copy link

Every docker-compose command fails with AttributeError: 'list' object has no attribute 'items'

My docker-compose looks like this:

db:
  image: postgres:9.4
  ports:
    - "5432"
web:
  build: .
  command: yesod devel
  environment:
    - HOST=0.0.0.0
    - PGUSER=postgres
    - PGPASS
    - PGHOST=db
  stdin_open: true
  volumes:
   - .:/app
  ports:
   - "3000:3000"
  links:
   - db
@dnephin
Copy link

dnephin commented Jul 9, 2015

Probably related to #129. Please include the version you're using and possibly the rest of the stack trace.

@tippenein
Copy link
Author

docker-compose v1.1.0

It works if I remove the db portion.

web:
  build: .
  command: yesod devel
  stdin_open: true
  volumes:
    - .:/usr/src/app
  ports:
    - "3000:3000"

The rest of the traceback looks like

  File "<string>", line 3, in <module>
  File "/Users/dec/projects/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 34, in main
  File "/Users/dec/projects/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 21, in sys_dispatch
  File "/Users/dec/projects/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.command", line 30, in dispatch
  File "/Users/dec/projects/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 24, in dispatch
  File "/Users/dec/projects/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.command", line 60, in perform_command
  File "/Users/dec/projects/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.command", line 100, in get_project
  File "/Users/dec/projects/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.command", line 81, in get_config

I'm pretty sure you're right about it being related to #129 but I'll include details for people possibly running into similar problems

@dnephin
Copy link

dnephin commented Jul 9, 2015

We've fixed some bugs around environment variables in the last couple of releases. I'd suggest trying with version 1.3.0 to see if it's fixed.

@tippenein
Copy link
Author

the 1.3.1 release fixes this issue

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

No branches or pull requests

2 participants