pull files from inside container

docker cp <container_id>:/path/to/file /path/to/save

clean up old images

docker rmi -f $(docker images --filter "dangling=true" -q)
docker image prune

ref