1.拉取python镜像 docker pull python 2.查看镜像,找到python的镜像id docker images 3.创建并启动容器 docker run -dit --name pythonFirst 镜像id /bin/bash 4.进入容器 docker exec -it pythonFirst /bin/bash 5.退出容器 exit 5.查看所有的容器 docker container ls