[root@VM-4-17-centos /]# docker exec -it 容器ID或名称 bash
[root@VM-4-17-centos /]# apt-get update
[root@VM-4-17-centos /]# apt-get install -y vim