Member-only story
10 Docker Commands You Didn’t Know About
Celebrating Docker’s 10th Birthday
Docker was introduced at PyCon 2013 and was released in March, making history and revolutionizing software engineering forever.
To celebrate its 10th birthday, I’m going to list 10 Docker commands you probably didn’t know about.

🐳 1. Docker Init 🎂
You probably didn’t know about this command, because it was introduced in Docker Desktop 4.18, which came out yesterday.
docker init
This command creates a Dockerfile in your repo based on the languages you’re using. Try it out and tweet about the result you got.
Here is the Docker image it created for my Go repo:
# syntax=docker/dockerfile:1
# Comments are provided throughout this file to help you get started.
# If you need more help, visit the Dockerfile reference guide at
# https://docs.docker.com/engine/reference/builder/
################################################################################
# Create a stage for building the application.
ARG GO_VERSION=1.13
FROM golang:${GO_VERSION} AS build
WORKDIR /src
# Download dependencies as a separate step to take advantage of Docker's caching.
# Leverage a cache mount to /go/pkg/mod/ to speed up subsequent builds.
# Leverage…