Skip to content

Instantly share code, notes, and snippets.

@basz
Created July 14, 2017 11:39
Show Gist options
  • Select an option

  • Save basz/c839692f2e375581344b8c8f733f6e67 to your computer and use it in GitHub Desktop.

Select an option

Save basz/c839692f2e375581344b8c8f733f6e67 to your computer and use it in GitHub Desktop.
// PROXYID either "" or "gjhgsd6tgk2j3rd"
PROXYID=$(docker network ls -q -f 'name=proxy')
if [ ! -n "$PROXYID" ]; then
docker network create --opt=encrypted --driver=overlay proxy
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment