#!/usr/bin/env bash
set -ex

export DOCKER_HOST=${DOCKER_HOST:-'dkhost:2376'}

container=$(docker ps -qn1)

while getopts c: name
do
    case $name in
      c)
        container=$OPTARG
        ;;
      *)
        ;;
    esac
done
shift $((OPTIND -1))

# shellcheck disable=SC2068
docker exec -it "$container" $@
#docker network inspect ingress

#docker service $@

#docker $@

#wget --no-check-certificate --spider -S --header='Host: abcapi.xai-corp.net' https://localhost/
