1、docker exec -it id bash
2、apt-get update
3、apt-get install -y vim
如果报
bash: apt-get: command not found
则
yum install -y vim
1、docker exec -it id bash
2、apt-get update
3、apt-get install -y vim
如果报
bash: apt-get: command not found
则
yum install -y vim