1. stop all docker containers
    docker stop $(docker ps -a -q)

  2. remove all docker containers
    docker rm $(docker ps -a -q)

  3. remove all docker images
    docker rmi $(docker images -q)

  4. 查詢 log 檔案的路徑
    docker inspect --format='{{.LogPath}}' $INSTANCE_ID

  5. Remove untag images
    docker images -q --filter "dangling=true" | xargs -n1 -r docker rmi