Skip to content

Instantly share code, notes, and snippets.


Rich Lander richlander

View GitHub Profile
View SwitchStatementMapper.cs
namespace XUnitTestProject
using Xunit;
public static class SwitchStatementMapper
// Don't judge me, it's only for educational purposes :)
public static bool Map(string str) => str switch
"true" => true,

Retrieving Docker Image Sizes

There are two metrics that are important to consider when discussing the size of Docker images.

  1. Compressed size - This is often referred to as the wire size. This affects how fast/slow images can be pulled from a registry. This impacts the first run experience on machines where images are not cached.
  2. Uncompressed size - This is often referred to as the size on disk. This affects how much local storage is required to support your Docker workloads.

The example commands shown below will work on Windows, MacOS, and Linux.

How to Measure the Compressed Size