Unquoted args in Docker wrapper script
Ilya Dmitrichenko
errordeveloper at gmail.com
Wed Jan 7 18:24:11 UTC 2015
Firstly, I am not quite sure why there is this wrapper shell script in the
first place, but anyhow here is what I have observed:
root at localhost:~# docker inspect --format='{{ .NetworkSettings }}' mycontainer
Template parsing error: template: :1: unexpected unclosed action in command
INFO[0000] Template parsing error: template: :1: unexpected unclosed
action in command
root at localhost:~# cat `which docker`
#!/bin/sh
##TARGET=/apps/docker/1.3.2.007/bin/docker
#TMPDIR=/run/apps/docker <http://1.3.2.007/bin/docker#TMPDIR=/run/apps/docker>
cd /apps/docker/1.3.2.007
aa-exec -p docker_docker_1.3.2.007 -- /apps/docker/1.3.2.007/bin/docker $@
root at localhost:~# /apps/docker/1.3.2.007/bin/docker inspect
--format='{{ .NetworkSettings }}' mycontainer
map[Bridge:docker0 Gateway:172.17.42.1 IPAddress:172.17.0.2
IPPrefixLen:16 MacAddress:02:42:ac:11:00:02 PortMapping:<nil>
Ports:map[6783/tcp:[map[HostIp:0.0.0.0 HostPort:6783]]
6783/udp:[map[HostIp:0.0.0.0 HostPort:6783]]]]
root at localhost:~#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snappy-app-devel/attachments/20150107/576df119/attachment.html>
More information about the snappy-app-devel
mailing list