docker run -d -i -t 镜像id // 运行镜像

docker ps //查看容器id

docker exec -it 容器id bash //进入容器

exit //退出容器