See what is taking the space:
docker system df
Remove stopped containers, unused networks, dangling images and the build cache:
docker system prune
Add -a to also drop every image that no running container uses, and --volumes if you want unused volumes gone too. Be careful with that last one, volumes are where databases keep their data.
docker system prune -a --volumes