Tired of "command not found" - these lines will install commonly used tools to debug networking, read logs, and other things.
Start a shell as root inside the container
CONTAINER_KEYWORD="spark"
CONTAINER_NAME=$(docker ps | grep -i "${CONTAINER_KEYWORD}" | head -n 1 | awk '{print $NF}')
echo "CONTAINER_NAME: ${CONTAINER_NAME}"