Reputation: 4682
I am trying to create a MySQL container inside Jenkins pipeline using Docker Compose . I run the following command after
installing docker compose version 1.9.0
docker-compose -f ./jenkins/docker-compose.yml run -rm redis
and my compose file looks like
version: '2.1'
services:
redis:
image: "redis:alpine"
When running this I am getting the error as follows :
docker-compose $'\342\200\223f' ./jenkins/docker-compose.yml run $'\342\200\223rm' redis
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "compose/cli/main.py", line 62, in main
File "compose/cli/main.py", line 93, in dispatch
File "compose/cli/docopt_command.py", line 31, in parse
File "compose/cli/docopt_command.py", line 42, in get_handler
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
docker-compose returned -1
How to fix this ?
Upvotes: 2
Views: 1280
Reputation: 481
Did you copy and paste your Jenkins config by chance? \342\200\223
is the octal representation of an "en dash" which is being used in places where you want a hyphen. Try adjusting your Jenkins config to use hyphens instead.
Upvotes: 1