1. 程式人生 > >創建自己的docker基礎鏡像

創建自己的docker基礎鏡像

article pre run att www too .net .cn wget

1.下載鏡像 centos7

docker pull centos:7 

2.創建容器加載鏡像

docker run -i -t --name centos7 centos:7  

docker run 參數詳解請參考

http://blog.csdn.net/kunloz520/article/details/53839237

3.安裝一些常用的工具

yum install -y  net-tools 
yum install -y vim wget  

4.退出

exit

5.再次連接容器

docker attach centos7 

6.其他常用命令參考,很全

http://www.cnblogs.com/ivictor/archive/2015/09/08/4791274.html

創建自己的docker基礎鏡像