2015-10-06 741 views
2

我是新來的docker。我試圖用推出的圖像:Docker返回「json:can not unmarshal string into Go value of type [] string」

fig up -d --allow-insecure-ssl 

,但我得到了以下錯誤消息:

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

我無法弄清楚如何解決它。

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 

泊塢窗版本

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 

圖--version

fig 1.0.1 

任何想法,爲什麼我得到這個錯誤?

回答

2

首先,fig早已遷移到docker compose。其次,docker 1.6.2並不是docker的最新版本。

所以追逐的錯誤太多了(在出現問題光像1638)前:

  • 更新docker compose和搬運工1.8.2
  • 檢查您的入口點在你的docker-compose.ymltrue should be /bin/true爲例。
+1

嗨。 (1)我嘗試了最新版本的docker,但是我得到了同樣的錯誤。 – Vovochka

+2

@Vovochka與'無花果'或'碼頭構成'?你的'docker-compose.yml'內容是什麼? – VonC

相關問題