20 useful Docker Command examples in Linux

Pradeep Kumar

I am a huge fan of open source and love to share How To's tutorials on Linux, Cloud and DevOps. I have been working as Linux Consultant, Cloud & DevOps Engineer since 2010

You may also like...

4 Responses

  1. ben says:

    Great post!

    I wonder why you put “15 useful docker command examples” before the first example whereas you put 20 commands in the article.

    Keep up the great work

  2. Michel K. says:

    Question :
    If I export a container to a tar file
    untar the tar file
    change the content (say change a config file)
    recreate a new tar file
    and import the new tar file into a new container
    would that be equivalent to a build ??

    • There are two ways by which you can build the Container Images:

      – Commit ( Make changes in container and save to a new container image with commit option in docker command)
      – DockerFile ( It a text file where we specify the list of commands & configurations for docker container image)

      I don’t think so your above mentioned method is equivalent to build.

Leave a Reply

Your email address will not be published. Required fields are marked *