Cannot start service: json: cannot unmarshal object into Go value of type []string

docker
config
2.0

#1

I have this issue running “machine” executor.
This is my .circleci/config.yml file:

version: 2
jobs:
    build:
        machine: true
        working_directory: ~/project
        steps:
            - run:
                name: Install Docker client
                command: |
                    set -x
                    VER="17.05.0-ce"
                    curl -fsSL https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz -o /tmp/docker-$VER.tgz
                    sudo -H tar --strip-components=1 -xvzf /tmp/docker-$VER.tgz -C /usr/local/bin
                    sudo -H rm -f /tmp/docker-$VER.tgz
                    sudo -H service docker stop
                    sudo -H service docker start
                    sudo -H docker -v

            - run:
                name: Install Docker Compose
                command: |
                    set -x
                    VER="1.13.0"
                    sudo -H curl -L https://github.com/docker/compose/releases/download/$VER/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
                    sudo -H chmod +x /usr/local/bin/docker-compose
            - run:
                name: Start container and verify it's working
                command: |
                    set -x
                    cd ~/project/.docker
                    docker-compose up -d

And this is my .docker/docker-compose.yml file:

version: '3'

services:
  redis:
    image: redis:3.2-alpine
    ports:
      - "6379:6379"

Logged in via SSH in the build host, I get the same error:

~/project/.docker$ docker-compose up -d
Starting docker_redis_1 ... 
Starting docker_redis_1 ... error

ERROR: for docker_redis_1  Cannot start service redis: json: cannot unmarshal object into Go value of type []string

ERROR: for redis  Cannot start service redis: json: cannot unmarshal object into Go value of type []string

#2

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.