Failed to execute docker-compose up

The project occured a build error without changing code today.
Build error message was below.

$ docker-compose -v
docker-compose version 1.14.0, build c7bdf9e

$ docker-compose up -d
foo_db-test_1 is up-to-date
foo_db_1 is up-to-date

ERROR: for web  expected string or buffer
Traceback (most recent call last):
  File "/opt/circleci/.pyenv/versions/2.7.11/bin/docker-compose", line 11, in <module>
  File "/opt/circleci/python/2.7.11/lib/python2.7/site-packages/compose/cli/", line 68, in main
  File "/opt/circleci/python/2.7.11/lib/python2.7/site-packages/compose/cli/", line 118, in perform_command
    handler(command, command_options)
  File "/opt/circleci/python/2.7.11/lib/python2.7/site-packages/compose/cli/", line 926, in up
  File "/opt/circleci/python/2.7.11/lib/python2.7/site-packages/compose/", line 424, in up
  File "/opt/circleci/python/2.7.11/lib/python2.7/site-packages/compose/", line 69, in parallel_execute
    raise error_to_reraise
TypeError: expected string or buffer

docker-compose up -d returned exit code 1

Action failed: docker-compose up -d

Deleting the docker-compose up command, the build succeeded.


I am facing exactly same issue at the moment.

I am facing the same issue as well. Any updates to this today?

Also getting this issue. We don’t use docker-compose up, we use docker-compose run.

This is duplicate of this:

Problem is Docker 2.4, solution is to pip install the 2.3

1 Like

Thanks @clickthisnick !

This problem was solved by changing the installation method of docker-compose.

    - curl -sSL | bash -s -- 1.10.0
    - pip install --upgrade pip
-    - pip install docker-compose
+    - pip install docker-compose docker==2.3