duandunzhuo3234 2015-10-06 07:11
浏览 303
已采纳

Docker返回“ json:无法将字符串解组为[] string类型的Go值”

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?

  • 写回答

1条回答 默认 最新

  • douguai6716 2015-10-06 07:24
    关注

    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.
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在3D高斯飞溅的渲染的场景中获得一个可控的旋转物体
  • ¥88 实在没有想法,需要个思路
  • ¥15 MATLAB报错输入参数太多
  • ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件
  • ¥15 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败