utils/shell.sh

13 lines
319 B
Bash
Executable File

#!/bin/bash
source vars
docker inspect ${APP_NAME} > /dev/null 2>&1
if [[ $? -ne 0 ]]; then
echo "The ${APP_NAME} container doesn't appear to exist, exiting"
fi
CONTAINER_ID=`docker inspect ${APP_NAME} | python -c 'import sys, json; print json.load(sys.stdin)[0]["Id"]'`
docker exec -it ${CONTAINER_ID} /bin/bash