Nützliche Docker-Befehle

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

————————–

#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)

————————–

docker exec -it mariadb bash
mysql

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