Skip to content

Instantly share code, notes, and snippets.

@mrinterweb
Created January 22, 2020 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrinterweb/4b47b91729810fa1c100594e8325b045 to your computer and use it in GitHub Desktop.
Save mrinterweb/4b47b91729810fa1c100594e8325b045 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
set -u
set -o pipefail
service_name="${1:-monolith}"
container_id="$(docker container ls | grep "opal_$service_name" | head -n1 | cut -d " " -f 1)"
docker logs -f $container_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment