Skip to content

Instantly share code, notes, and snippets.

@onjin
Created February 23, 2016 08:06
Show Gist options
  • Select an option

  • Save onjin/3732dfaaba152011ad15 to your computer and use it in GitHub Desktop.

Select an option

Save onjin/3732dfaaba152011ad15 to your computer and use it in GitHub Desktop.
list all running nginx virtual hosts on docker created using https://github.com/jwilder/nginx-proxy
# list all running nginx virtual hosts on docker created using
# `https://github.com/jwilder/nginx-proxy`
docker inspect --format '{{ index (index .Config.Env) 1 }}' $(docker ps -q) | grep VIRTUAL_HOST | cut -d\= -f 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment