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}"
docker exec -u 0 -it "${CONTAINER_NAME}" bash
Install some utilities
apt update
apt install dnsutils sudo curl wget less vim git net-tools iproute2 iputils-ping exa
alias ls='exa'
alias la='ls -alh'
More utilities:
apt install telnet netcat-openbsd tcpdump nmap socat