Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Template parsing error: template: :1: unclosed action

Tags:

docker

While doing the Network Container lesson Network Containers Lesson I ran into an error

Template parsing error: template: :1: unclosed action

when executing

docker inspect --format='{{json .NetworkSettings.Networks}}'  db

What could be the issue?

like image 409
Roman Mik Avatar asked Aug 11 '16 01:08

Roman Mik


1 Answers

I'm running the commands on Windows 10 and the strings must be enclosed with double quotes. Therefore, rewriting the command as

docker inspect --format="{{json .NetworkSettings.Networks}}"  db

solved it.

like image 82
Roman Mik Avatar answered Oct 30 '22 04:10

Roman Mik