What is Docker?
The term "Docker" refers to a variety of things, including open source community projects, tools used by open source projects, Docker Inc., the company that leads the support for such projects, and tools officially supported by that company. It's a little confusing that technology products and companies use the same name.
Let's briefly explain:
??? The "Docker" in IT software refers to the containerization technology used to support the creation and use of Linux containers.
??? The open source Docker community is committed to improving this type of technology and making it freely available to all users for the benefit of it.
??? Docker Inc. started with the Docker community product, which is responsible for improving the security of the community version and sharing the improved version with the wider technical community. In addition, it specializes in perfecting and safely curing these technical products to serve enterprise customers.
With Docker, you can use containers as lightweight, modular virtual machines. At the same time, you'll gain the flexibility to efficiently create, deploy, and replicate containers, and migrate them smoothly from one environment to another.
docker buid -t ssrf-labs:v1 .
docker image ls
docker run -it image_id
docker cp /home/kali/Desktop/sources.txt image_id:/etc/apt/sources.txt
mv sources.txt sources.list
docker commit container_id new_image_name:tag
修改dockerfile from 设置为new_image_name:tag
docker build -t new_name:v1
Don't talk nonsense before you start installing
First download docker download it yourself
Open terminal and
enter administrator mode
apt-get update //照着打 更新源
apt-get install docker 安装依赖
apt-get install docker-compose
docker build -t ssrf-lab:v1 . // 然后这条命令
Seeing this statement is successful. Wait patiently for foreign sources. The method is too complicated to
open. Waiting for a long time to see this is successful.
The red box is your name.
docker ps -a
docker run -d -p 8899:80 ssrf_new3:v2
see this worked