Steve Borba

My notes, I hope they help you, feel free to comment/add to them

docker

list of commands

docker exec -it guacamole-mysql-1 bash
docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --mysql
docker compose -f docker-compose.yml up -d
docker ps
docker logs --follow radius -n 20
docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --mysql | docker exec -i guacamole-mysql-1 mysql guacamole


docker volume prune
docker system prune

docker system prune -a -f
docker system prune -a --volumes -f

#!/bin/sh
volumes=$(docker volume ls --format '{{.Name}}')
for volume in $volumes
do
    echo "Volume: $volume"
    docker ps -a --filter volume="$volume" --format '  - {{.Names}}'
done


Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>