Docker基础

推荐文章

https://yeasy.gitbooks.io/docker_practice/content/introduction/

镜像

打包镜像

docker save  eb9a804ae885 > /opt/soft/postgres.img 

加载镜像

docker load < postgres.img  

容器

仓库

数据管理

数据卷和数据卷容器

Windows挂载数据卷

  • 要先在设置里面绑定Shared Dirves再挂载
docker run -ti -v e:/share:/usr/myshare  ubuntu  bash

进入容器

你可能感兴趣的:(Docker基础)