Docker-compose failure with codec exception

Whenever I’m running docker compose I’m getting a failure. Currently, my compose yaml is very very simple:

    version: '3'
        image: "mongo:3.2"
         - "27017:27017"

I run the following compose:

bash-3.2$ docker-compose up –d
Traceback (most recent call last):
  File "docker-compose", line 6, in <module>
  File "compose/cli/", line 68, in main
  File "compose/cli/", line 121, in perform_command
  File "compose/cli/", line 952, in up
  File "compose/", line 428, in up
  File "compose/", line 188, in get_services_without_duplicate
  File "compose/", line 176, in get_services
  File "compose/", line 147, in get_service
  File "compose/", line 666, in __init__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
Failed to execute script docker-compose

I have Docker for Mac installed:

    bash-3.2$ docker version
 Version:	17.12.0-ce
 API version:	1.35
 Go version:	go1.9.2
 Git commit:	c97c6d6
 Built:	Wed Dec 27 20:03:51 2017
 OS/Arch:	darwin/amd64

  Version:	17.12.0-ce
  API version:	1.35 (minimum version 1.12)
  Go version:	go1.9.2
  Git commit:	c97c6d6
  Built:	Wed Dec 27 20:12:29 2017
  OS/Arch:	linux/amd64
  Experimental:	true

   bash-3.2$ docker-compose version
docker-compose version 1.18.0, build 8dd22a9
docker-py version: 2.6.1
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2j  26 Sep 2016

I cannot figure out what is wrong and why this is failing.

Cheers - Erik

what editor did you use to create the file? needs to be ascii text

Intellij. That isn’t the issue. If I change to use Edge, I don’t have any issues.

Cheers - Erik

You’re probably running into this issue:

The current workaround is to make sure you don’t have non-ASCII characters in your docker-compose.yml - even in comments.
The next Compose release (1.20.0) may help with this.

i think your problem is the command you use
docker-compose up –d
docker-compose up -d
pls use the below one instead.