1.docker容器中后台运行退出执行curl+p+q,再次进入执行命令docker attach 容器id. 2.容器中exit退出后,还原方法为docker ps -a 查看历史运行容器,docker start 容器id,docker attach 容器id. 3.docker容器中安装centos7,会遇到 Failed to get D-Bus connection: Operation not permitted 错误,执行docker run --privileged -itd 容…