Nützliche Docker-Befehle

sudo usermod -aG docker USERNAME
service docker status
service docker start
service docker stop
docker rmi -f IMAGE-ID


# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)


docker exec -it mariadb bash

produces the following error message: TERM environment variable not set.

echo $TERM

returns “dumb” and issuing

export TERM=dumb

resolves issue.

If the environment variable is explicitly issued in the dockerfile, the error message never appears, i.e. adding ENV TERM dumb

Leave a Reply