In case you prefer a video, check below our YouTube video for this lab
Create docker hub account Docker Hub skip this step if you already have one
Open Play with Docker
login with your docker hub account
Click on start
It will start a 4 hr session
click on + ADD NEW INSTANCE
Task: Run a docker container with image ubuntu and connect to to perform below command
apt-get update
apt-get install -y figlet
figlet "hello docker"
docker container run -it ubuntu bash
apt-get update
apt-get install -y figlet
figlet "hello docker"
exit
Task: List all docker containers on local system
docker container ls -a
Task: List and verify all change made to container
docker container diff <container ID>
Task: Create new docker image which include all changes you have made in previous step
docker container commit CONTAINER_ID
Task: List all docker images on local system
docker image ls -a
Task: Update name on docker image you created in previous steps
name firstimage
tag 1.0
docker image tag <IMAGE_ID> firstimage
Task: List all docker images on local system
docker image ls -a
Task: Run docker container with new image and command figlet hello
docker container run firstimage figlet hello
Delete all open nodes/instances and close session