Skip to content

Instantly share code, notes, and snippets.

@fernyb
Created February 13, 2021 19:25
Show Gist options
  • Save fernyb/94d9bfbe8821de9612dbf08c3306b82a to your computer and use it in GitHub Desktop.
Save fernyb/94d9bfbe8821de9612dbf08c3306b82a to your computer and use it in GitHub Desktop.
docker bash
# entrypoint is the default /bin/sh -c
# /bin/sh -c bash
docker run -i -t pup bash
# Build docker image
docker build -t pup .
# remove dangling images
docker image prune
# remove both unused and dangling images
docker image prune -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment