Skip to content

Instantly share code, notes, and snippets.

@delfer
Last active June 17, 2020 14:32
Show Gist options
  • Save delfer/f024d2e86211bd5137f4f2093bb02be8 to your computer and use it in GitHub Desktop.
Save delfer/f024d2e86211bd5137f4f2093bb02be8 to your computer and use it in GitHub Desktop.
Dummy 500Mb Docker image
# Ignore everything
*
FROM busybox AS builder
RUN dd if=/dev/urandom of=/500m bs=5M count=100
FROM scratch
COPY --from=builder /500m /
@delfer
Copy link
Author

delfer commented Jun 11, 2020

# docker build --no-cache -t image500m .
# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
image500m           latest              d73d882d64a1        6 seconds ago       524MB

@delfer
Copy link
Author

delfer commented Jun 17, 2020

for i in {00..99}
do
  docker build --no-cache --rm -t image500m${i} .
  docker rmi $(docker images -f "dangling=true" -q | tr "\n" " ")
done;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment