Insert space in Golang command

0

In Docker i am trying to display image id using Go template

but the Go template is not accepting the space

ubuntu@ip-172-31-45-72:~$ docker image ls 
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
alpine              latest              4d90542f0623        38 hours ago        5.58MB
ubuntu@ip-172-31-45-72:~$ docker image ls --format "{{.Repository}}   {{.IMAGE ID}}"
Template parsing error: template: :1: function "ID" not defined

Sivakumarj

Posted 2019-06-21T11:18:29.293

Reputation: 11

No answers