#查看docker容器的长链接
[root@localhost ~]# docker inspect -f '{{.ID}}' 33c6881e0945
33c6881e0945f56fe161de246f583dddaf0dc58941da8d7540134be7eaf3bd72
#进入容器
[root@localhost ~]# docker exec -it 33c6881e0945 bash
#查看当前目录
[root@localhost basepath]# pwd
/basepath
#查看容器中的子目录
[root@localhost basepath]# ls
Readme.txt collect collect_init
#退出容器
[root@localhost basepoint]# exit
#动态从容器中的备份文件
[root@localhost /]# docker cp 33c6881e0945f56fe161de246f583dddaf0dc58941da8d7540134be7eaf3bd72:/basepath/collect/build.dll /home/temp/bak/build.dll
#动态覆盖容器中的文件
[root@localhost /]# docker cp /home/temp/build.dll 33c6881e0945f56fe161de246f583dddaf0dc58941da8d7540134be7eaf3bd72:/basepath/collect/
#重启容器
[root@localhost /]# docker restart 33c6881e0945