# Circle CI and Docker Compose Version 2 YAML syntax

**URL:** <https://discuss.circleci.com/t/circle-ci-and-docker-compose-version-2-yaml-syntax/4708>\
**Category:** Bug Reports\
**Created:** [June 22, 2016, 12:01am UTC](https://discuss.circleci.com/t/circle-ci-and-docker-compose-version-2-yaml-syntax/4708 "2016-06-22T00:01:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimothyDalbey](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/timothydalbey/32/3338_2.png) [@TimothyDalbey](https://discuss.circleci.com/u/TimothyDalbey)\
**Post date:** [June 22, 2016, 12:01am UTC](https://discuss.circleci.com/t/circle-ci-and-docker-compose-version-2-yaml-syntax/4708/1 "2016-06-22T00:01:34Z")

</div>

I’m getting a peculiar bug when I attempt to use `docker compose up` with a [Version 2 yaml syntax](https://docs.docker.com/compose/compose-file/#versioning) compose file. The error reads as follows:

> ------------- Executing Compose -------------  
> Creating network “compose\_default” with the default driver  
> ERROR: 404 page not found

I am attempting to perform a compose statement as follows:

`echo " ------------- Executing Compose ------------- " docker-compose --file ../cluster-test.yml up -d`

Where `cluster-test.yml` reads:

> version: ‘2’  
> services:  
> dbpostgres:  
> image: postgres:9.4

Finally, here are the versions of `docker` and `docker-compose` on the machine:

> docker-compose -v  
> docker-compose version 1.7.1, build 6c29830

> docker -v  
> Docker version 1.8.3-circleci, build 5074b56

Anyone come across this before?

---

<div class="post-metadata">

**Author:** ![TimothyDalbey](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/timothydalbey/32/3338_2.png) [@TimothyDalbey](https://discuss.circleci.com/u/TimothyDalbey)\
**Post date:** [June 22, 2016, 12:03am UTC](https://discuss.circleci.com/t/circle-ci-and-docker-compose-version-2-yaml-syntax/4708/2 "2016-06-22T00:03:44Z")

</div>

Ah - looks like I need to upgrade my docker version to 1.10+

---

<div class="post-metadata">

**Author:** ![dschien](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@dschien](https://discuss.circleci.com/u/dschien)\
**Post date:** [June 24, 2016, 5:20pm UTC](https://discuss.circleci.com/t/circle-ci-and-docker-compose-version-2-yaml-syntax/4708/3 "2016-06-24T17:20:49Z")

</div>

Did upgrading do the trick?

What exactly did you do?

---

<div class="post-metadata">

**Author:** ![TimothyDalbey](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/timothydalbey/32/3338_2.png) [@TimothyDalbey](https://discuss.circleci.com/u/TimothyDalbey)\
**Post date:** [June 24, 2016, 7:36pm UTC](https://discuss.circleci.com/t/circle-ci-and-docker-compose-version-2-yaml-syntax/4708/4 "2016-06-24T19:36:21Z")

</div>

Yep - upgrading the Docker version to 1.10 worked. But it’s caused a myriad of other issues… Here’s the syntax to upgrade the Docker version:

```
machine:
  pre:
    - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0

```

Later I do the following:

```
dependencies:
  pre:
    - sudo pip install docker-compose

```

This definitely enables the launch of compose version 2 files.

---

<div class="post-metadata">

**Author:** ![trungdq88](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/trungdq88/32/644_2.png) [@trungdq88](https://discuss.circleci.com/u/trungdq88)\
**Post date:** [August 29, 2016, 12:50am UTC](https://discuss.circleci.com/t/circle-ci-and-docker-compose-version-2-yaml-syntax/4708/5 "2016-08-29T00:50:14Z")

</div>

Thanks! This is working for me!

---

<div class="post-metadata">

**Author:** ![epugh](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/epugh/32/13840_2.png) [@epugh](https://discuss.circleci.com/u/epugh)\
**Post date:** [September 10, 2016, 1:51pm UTC](https://discuss.circleci.com/t/circle-ci-and-docker-compose-version-2-yaml-syntax/4708/6 "2016-09-10T13:51:04Z")

</div>

After the pip install, I am doing “docker info” and it says docker isn’t running.

Do I need to manually start docker?

---

<div class="post-metadata">

**Author:** ![dotsbb](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/dotsbb/32/14536_2.png) [@dotsbb](https://discuss.circleci.com/u/dotsbb)\
**Post date:** [November 4, 2016, 8:01am UTC](https://discuss.circleci.com/t/circle-ci-and-docker-compose-version-2-yaml-syntax/4708/7 "2016-11-04T08:01:44Z")

</div>

@epugh make sure that you have docker service enabled in circle.yml

```auto
machine:
  pre:
    # https://discuss.circleci.com/t/docker-1-10-0-is-available-beta/2100
    - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
    - pip install docker-compose==1.8.0
  services:
    - docker

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:34am UTC](https://discuss.circleci.com/t/circle-ci-and-docker-compose-version-2-yaml-syntax/4708/8 "2018-06-18T11:34:14Z")

</div>

Closed on June 18, 2018, 11:34am UTC


