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
Now they are mentioned like.
# docker command sub-command option
# 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.
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.