I'm always guilty of using the :latest tag on containers in my docker-compose files and forgetting to fix it. This command came in very handy today to work out the tags of the deployed container to pin everything correctly.
docker inspect --format '{{ range $k, $v := .Config.Labels }}{{ $k }}={{ $v }}{{println}}{{ end }}' <container_name> | grep -i version
Is there an easier way I don't know about? (Other than doing it correctly the first time!)

