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 / 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 /
Last active Mar 31, 2017
Script to clean up exited docker containers and dangling docker images
cids=$(docker ps -f "status=exited" -aq)
if [ "$cids" ]; then
docker rm $cids
iids=$(docker images -q --filter "dangling=true")
if [ "$iids" ]; then
docker rmi $iids
You can’t perform that action at this time.