- Pull the latest
abhaybhargav/vul_flask
docker image from DockerHub.
docker pull abhaybhargav/vul_flask
- List all docker images on the machine.
docker images
- Run the
abhaybhargav/vul_flask
docker image.
docker run -d --name vul_flask abhaybhargav/vul_flask
- View all running containers.
docker ps
- To exec into/access the running container, run the following command
docker exec -it vul_flask bash
root@0c8c0c6a5122:/apps#
- To exit from the container, run
exit
exit
- Stop the running
vul_flask
container.
docker stop vul_flask
- View all running and stopped containers.
docker ps -a
- Remove the stopped container.
docker rm vul_flask
-
Remove the
abhaybhargav/vul_flask
docker image from the system.Note: Don't delete image from the VM
docker rmi abhaybhargav/vul_flask