Skip to content

Latest commit

 

History

History
95 lines (53 loc) · 1.11 KB

File metadata and controls

95 lines (53 loc) · 1.11 KB

Docker Hands-On

Step 1:
  • Pull the latest abhaybhargav/vul_flask docker image from DockerHub.
docker pull abhaybhargav/vul_flask
Step 2:
  • List all docker images on the machine.
docker images
Step 3:
  • Run the abhaybhargav/vul_flask docker image.
docker run -d --name vul_flask abhaybhargav/vul_flask
Step 4:
  • View all running containers.
docker ps
Step 5:
  • To exec into/access the running container, run the following command
docker exec -it vul_flask bash

root@0c8c0c6a5122:/apps#
Step 6:
  • To exit from the container, run exit
 exit
Step 7:
  • Stop the running vul_flask container.
docker stop vul_flask
Step 8:
  • View all running and stopped containers.
docker ps -a
Step 9:
  • Remove the stopped container.
docker rm vul_flask
Step 10:
  • Remove the abhaybhargav/vul_flask docker image from the system.

    Note: Don't delete image from the VM

docker rmi abhaybhargav/vul_flask