Skip to content

Instantly share code, notes, and snippets.

David Stearns drstearns

  • University of Washington
Block or report user

Report or block drstearns

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@drstearns
drstearns / Dockerfile
Last active Mar 21, 2018
docker cowsay
View Dockerfile
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y fortune cowsay && rm -rf /var/lib/apt/lists/*
ENV PATH "$PATH:/usr/games"
CMD [ "/bin/bash", "-c", "/usr/games/fortune | /usr/games/cowsay" ]
@drstearns
drstearns / docker-clean.sh
Last active Mar 31, 2017
Script to clean up exited docker containers and dangling docker images
View docker-clean.sh
#!/bin/bash
cids=$(docker ps -f "status=exited" -aq)
if [ "$cids" ]; then
docker rm $cids
fi
iids=$(docker images -q --filter "dangling=true")
if [ "$iids" ]; then
docker rmi $iids
fi
You can’t perform that action at this time.