问题
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