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