The Docker API seems to respond with a 'null' value for the 'Labels' attribute from containers that were created with older Docker versions. An empty dictionary is returned in this case. Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
Signed-off-by: Joffrey F <joffrey@docker.com>
Initial work thanks to @aanand. Signed-off-by: Ben Firshman <ben@firshman.co.uk>