启动镜像启动镜像以root权限进入镜像root@redis01:~# sudo docker exec -it -u root 632afeaadbd0 bash # 更新apt源 root@632afeaadbd0:/usr/share/elasticsearch# apt-get update # 安装vim root@632afeaadbd0:/usr/share/elasticsearch# apt-get install vim