Skip to content

Instantly share code, notes, and snippets.

@aiwas
Last active August 29, 2015 14:05
Show Gist options
  • Save aiwas/76ad5c869ddbcf79fe58 to your computer and use it in GitHub Desktop.
Save aiwas/76ad5c869ddbcf79fe58 to your computer and use it in GitHub Desktop.
Check some network information of Docker Container
#!/bin/bash
# ccport CONTAINER [option]
# Options $2: port range(nmap option format)
ip=$(sudo docker inspect -f ' {{ .NetworkSettings.IPAddress }} ' $1)
nmap ${ip} $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment