bluemix containers -> json: cannot unmarshal string into Go value of type []string

半腔热情 提交于 2019-12-25 18:13:32

问题


I'm trying to retrieve the logs on an IBM container:

snowch$ cf ic logs $CONTAINER_ID
json: cannot unmarshal string into Go value of type []string

My versions are:

snowch$ cf ic version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d
OS/Arch (client): darwin/amd64
Server version: 3.0
Server API version: 1.20
Go version (server):
Git commit (server):
OS/Arch (server): Bluemix Containers/

and

snowch$ cf --version
cf version 6.18.0+b22884b-2016-05-10

I have seen a number of questions on stackoverflow for this error message, but none of them are using the cf ic logs command.


回答1:


Installing the latest 'ic' plugin as suggested by umberto-manganiello fixed the issue for me.



来源:https://stackoverflow.com/questions/37175214/bluemix-containers-json-cannot-unmarshal-string-into-go-value-of-type-stri

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!