Grab container ID using bash sorcery to pass to container_kill_start kill task.#270
Grab container ID using bash sorcery to pass to container_kill_start kill task.#270kaushikanurag merged 5 commits intomasterfrom
Conversation
|
have you tried |
|
We could but it seems like now we are piling on logic. Here's a mini-flow, then: CONTAINER_ID= |
|
At this point might as well write a shell script, upload it, and run it... |
There was a problem hiding this comment.
Sorry, was for debugging.
There was a problem hiding this comment.
remove comment, documentation is in the name
|
one small nit, but good to go |
There was a problem hiding this comment.
up to your discretion, should this be in /ops/* path?
Grab container ID using bash sorcery to pass to container_kill_start kill task.
Stepping through the changed command:
sudo docker ps | grep -v '^CONTAINER' | awk '{print $1,$2 }' | grep -e 'registry.runnable.com/runnable/navi:reconfigure-newrelic' -v -e : |awk -F' ' '{print $1}'sudo docker ps
grep -v '^CONTAINER'
awk '{print $1, $2}'
grep -e {{ container_id }} -v -e :
awk -F' ' '{print $1}'