<img
    title="dockerlab101"
    loading="lazy"
    decoding="async"
    class="img-fluid img-center"
    width="600"
    height="400"
    src="/images/practice/dockerlabs/dockerlab101_hua242b20f4b8ebd07987330318a608791_800912_600x400_resize_q100_h2_box_3.webp"
    alt="dockerlab101"
    onerror="this.onerror='null';this.src='\/images\/practice\/dockerlabs\/dockerlab101_hua242b20f4b8ebd07987330318a608791_800912_600x400_resize_q100_box_3.png'" />

In this free lab, we will get familiar with docker and some of its basic commands


In case you prefer a video, check below our YouTube video for this lab

Click here to create a docker hub account

  <img
    title="docker login"
    loading="lazy"
    decoding="async"
    class="img-fluid img-center"
    width="600"
    height="400"
    src="/images/practice/dockerlogin_hu1f221f14fe461ff4690c69ff8c84d3c3_315570_600x400_fit_q100_h2_box_3.webp"
    alt="docker login"
    onerror="this.onerror='null';this.src='\/images\/practice\/dockerlogin_hu1f221f14fe461ff4690c69ff8c84d3c3_315570_600x400_fit_q100_box_3.png'" />
  <img
    title="pwd start"
    loading="lazy"
    decoding="async"
    class="img-fluid img-center"
    width="600"
    height="400"
    src="/images/practice/dockerlabs/pwdstart_hu7b3fbdc65158677466b15ae9b9e2a4ca_67286_600x400_fit_q100_h2_box_3.webp"
    alt="pwd start"
    onerror="this.onerror='null';this.src='\/images\/practice\/dockerlabs\/pwdstart_hu7b3fbdc65158677466b15ae9b9e2a4ca_67286_600x400_fit_q100_box_3.png'" />

It will start a 4 hour session

  <img
    title="pwd session"
    loading="lazy"
    decoding="async"
    class="img-fluid img-center"
    width="600"
    height="400"
    src="/images/practice/k8slabs/pwksession_hu5b589b6b0073ab182d99a0ab899ae088_109284_600x400_fit_q100_h2_box_3.webp"
    alt="pwd session"
    onerror="this.onerror='null';this.src='\/images\/practice\/k8slabs\/pwksession_hu5b589b6b0073ab182d99a0ab899ae088_109284_600x400_fit_q100_box_3.png'" />

click on + ADD NEW INSTANCE

  <img
    title="pwd add node"
    loading="lazy"
    decoding="async"
    class="img-fluid img-center"
    width="600"
    height="400"
    src="/images/practice/k8slabs/pwkaddnode_hu5b589b6b0073ab182d99a0ab899ae088_102350_600x400_fit_q100_h2_box_3.webp"
    alt="pwd add node"
    onerror="this.onerror='null';this.src='\/images\/practice\/k8slabs\/pwkaddnode_hu5b589b6b0073ab182d99a0ab899ae088_102350_600x400_fit_q100_box_3.png'" />

docker container run hello-world
  <img
    title="docker run hello world"
    loading="lazy"
    decoding="async"
    class="img-fluid img-center"
    width="600"
    height="400"
    src="/images/practice/dockerlabs/dlab101/dockerrunhelloworld_hu0b57454ae077e02aa92a045e2d9623af_114189_600x400_fit_q100_h2_box_3.webp"
    alt="docker run hello world"
    onerror="this.onerror='null';this.src='\/images\/practice\/dockerlabs\/dlab101\/dockerrunhelloworld_hu0b57454ae077e02aa92a045e2d9623af_114189_600x400_fit_q100_box_3.png'" />

Check size of image with below command:

docker images
  <img
    title="docker images"
    loading="lazy"
    decoding="async"
    class="img-fluid img-center"
    width="600"
    height="400"
    src="/images/practice/dockerlabs/dlab101/dockerimages_hu3c77d177ead98658eca91bb1f8097755_18502_600x400_fit_q100_h2_box_3.webp"
    alt="docker images"
    onerror="this.onerror='null';this.src='\/images\/practice\/dockerlabs\/dlab101\/dockerimages_hu3c77d177ead98658eca91bb1f8097755_18502_600x400_fit_q100_box_3.png'" />

You can get more details on container with below command

docker inspect <container name>
  <img
    title="docker inspect container"
    loading="lazy"
    decoding="async"
    class="img-fluid img-center"
    width="600"
    height="400"
    src="/images/practice/dockerlabs/dlab101/dockerinspectcontainer_hu70717a836892a441d4eaba5199089c6a_162668_600x400_fit_q100_h2_box_3.webp"
    alt="docker inspect container"
    onerror="this.onerror='null';this.src='\/images\/practice\/dockerlabs\/dlab101\/dockerinspectcontainer_hu70717a836892a441d4eaba5199089c6a_162668_600x400_fit_q100_box_3.png'" />

You can get more details on image with below command

docker inspect <image name>
  <img
    title="docker inspect image"
    loading="lazy"
    decoding="async"
    class="img-fluid img-center"
    width="600"
    height="400"
    src="/images/practice/dockerlabs/dlab101/dockerinspectimage_hu5cc7f40b1664226032a91904f46cba42_137998_600x400_fit_q100_h2_box_3.webp"
    alt="docker inspect image"
    onerror="this.onerror='null';this.src='\/images\/practice\/dockerlabs\/dlab101\/dockerinspectimage_hu5cc7f40b1664226032a91904f46cba42_137998_600x400_fit_q100_box_3.png'" />

Delete all open nodes/instances and close session

  1. Select the node and click on DELETE

  2. Repeat same for any other open nodes

  3. click close session

    cleanup


Click on ‘Submit Feedback’ on the bottom left of the page to submit any questions/feedback.