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

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度