简体   繁体   中英

Docker returns "json: cannot unmarshal string into Go value of type []string"

I'm new to docker. I tried to launch an image with:

fig up -d --allow-insecure-ssl

But I get the following error message:

json: cannot unmarshal string into Go value of type []string

And I can't figure out how to fix it.

My fig.yml :

configrepo:
  image: docker-registry.backbasecloud.com/backbase/engage-configuration:latest
  environment:
    - SERVICE_NAME=configuration
  ports:
      - "8788:8080"

configserver:
  image: docker-registry.backbasecloud.com/backbase/engage-configserver:latest
  environment:
    SERVICE_NAME: configserver
  ports:
    - "8888:8888"
  links:
    - configrepo:configrepo
  dns: 172.17.42.1

docker version

Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 7c8fca2
OS/Arch (client): darwin/amd64
Server version: 1.8.2
Server API version: 1.20
Go version (server): go1.4.2
Git commit (server): 0a8c2e3
OS/Arch (server): linux/amd64

fig --version

fig 1.0.1

Any ideas why I'm getting this error?

First, fig has long been migrated to docker compose .
Second, docker 1.6.2 is not the newest release of docker.

So before chasing that bug too much (in light of issues like 1638 ):

  • update to docker compose and docker 1.8.2
  • check your entrypoint in your docker-compose.yml : true should be /bin/true for instance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM