#启动 [root@centos7 ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE <none> <none> 2615542bfae5 44 seconds ago 689MB pwntools/pwntools base 7ae380081ac0 11 months ago 657MB [root@centos7 ~]# docker run -i -t 7ae380081ac0 /bin/bash
#进入 [root@centos7 ~]# docker container ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 418a2df1501c 7ae380081ac0 "/bin/bash" 10 minutes ago Up 10 minutes gallant_gould [root@centos7 ~]# docker exec -it 418a2df1501c /bin/bash
退出容器按ctrl+P+Q
容器内安装vim
1 2
pwntools@418a2df1501c:~$ sudo apt update pwntools@418a2df1501c:~$ sudo apt install vim