Reference guide for Docker Commands — NEW v/s OLD — LinuxTechLab

So I have been using Docker on & off for quite some time now, so when I started using Docker in 2016, I learned about it a bit & I learned about the Docker commands & I was quite comfortable with it. Then my role got changed & I was not using Docker anymore at all. Forward to 2018, I started using it again, but some things were changed with the way commands in Docker worked. Whenever I would reference a document, the commands were a bit changed, they were somewhat different.

Though their corresponding old commands would still work but Docker did introduce some changes & i believe those were welcomed changes. But it did create some confusion for me for a short while, some others might be confused with the old commands and new commands. I know most will say that these are not new commands as the change happened quite some time ago but still I thought of writing this article.

Recommended Read: The (in)complete Guide To DOCKER FOR LINUX Also Read: How to manage network in Ubuntu 18.04 — Netplan Command

This article will work as a reference for old Docker commands & their replacement, the new & improved Docker commands. So earlier commands would be called like,

# docker command options

For example,

Now they are mentioned like.

# docker command sub-command option

For example,

# docker container run image-id

Now we will discuss some other important commands that got an upgrade & will also discuss some newly introduced commands in Docker.

The way this will work is, I will first mention the old command and then will mention the new command followed by a brief about the command, like, # OLD_COMMAND — NEW_COMMAND — Brief introduction of command

So let’s get going.

Docker Commands

Then there are some new commands introduced as well related to Docker Networking.

Docker Networking Commands

I have tried to cover all the important commands that we use, but in case I have missed something (which I am sure I have ) or have added something wrong or you have any query or questions regarding this tutorial, then you can write to us using the comment box below.

If you think we have helped you or just want to support us, please consider these:-

Linux TechLab is thankful for your continued support.

Originally published at on August 3, 2020.



-- is a beginner friendly website where you can learn Linux Tips & tricks,Scripting, also has lots of tutorials aimed at making Linux easy.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

IDEX Weekly Update: Fees, Smart Contracts, Liquidity Addition & Removal

To Code or be SaaSy?

Abstraction limits user flexibility. This image presents another wonderfully mind-tickling 3D art piece from greek artist Katerina Kamprani, showing silverware with a third dimension — making them clumsy to use.

Introduction to Hadoop

How I learned AWS from Scratch and became a Certified Solutions Architect Associate?

Elegant Multi-Tenancy for Microservices — Part III: Implementation & Supporting Infrastructure

CS373 Spring 2022: Blog #14

Building realtime streaming applications using .NET Core and KAFKA

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store

LinuxTechLab is a beginner friendly website where you can learn Linux Tips & tricks,Scripting, also has lots of tutorials aimed at making Linux easy.

More from Medium

To setup & configure Jenkins , Install Docker and Git on AWS Amazon Linux 2 AMI (HVM)

BATS (Bash Automated Testing System)

Learning DevOps Series Part 3: Selecting a CI Tool

The Client for our app