Skip to content

Instantly share code, notes, and snippets.

@refo
Created March 19, 2020 17:36
Show Gist options
  • Save refo/1bdb0c5c65774600e098fffa5d891495 to your computer and use it in GitHub Desktop.
Save refo/1bdb0c5c65774600e098fffa5d891495 to your computer and use it in GitHub Desktop.

Build Dockerfile-custom, tag the image

docker build -t hebelek_custom -f Dockerfile-hebelek .

Check if you can access another container

host=db; port=3306; (echo >/dev/tcp/${host}/${port}) &>/dev/null && echo "open" || echo "closed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment