Snippets about docker

4 snippets

Back to all snippets

  1. SNP125

    Run a throwaway container with the current folder mounted

    Try a tool, a Node version or a Python version without installing anything.

    2 lines of sh in 2 blocks, 10 lines of explanation with 4 notes.

    #A45 docker cmd
  2. SNP046

    Open a shell in a running container

    Poke around inside a container to see what it actually looks like in there.

    3 lines of sh in 3 blocks, 4 lines of explanation.

    #B27 docker cmd
  3. SNP039

    MariaDB in Docker for local development

    A database for the project that you can throw away and recreate in a second.

    17 lines of yaml and sh in 2 blocks, 4 lines of explanation.

  4. SNP025

    Clean up Docker disk space

    Docker quietly ate 40 GB of my disk. Here is how to get it back.

    3 lines of sh in 3 blocks, 6 lines of explanation.

    #A42 docker cmd