#!/bin/bash

docker ps -a --no-trunc | grep ${1} | awk '{print $1}' | xargs docker stop  

#!/bin/bash

docker ps -a --no-trunc | grep ${1} | awk '{print $1}' | xargs docker stop
docker ps -a --no-trunc | grep ${1} | awk '{print $1}' | xargs docker rm
Stop & remove docker daemon thread
Stop & remove docker daemon thread
