容器管理器的基本使用筆記

1 使用網易開源站點作爲yum源
開源鏡像站點:
網易 http://mirrors/163.com
阿里雲 http://mirrors/aliyun.com
2 在線安裝docker
yum -y install docker
3 啓動服務
systemctl start docker
4 查找某個鏡像 例如ansible,busybox
docker search busybox
4.1 官方下載站點(英文):https://hub.docker.com
國內下載站點 :https://www.daocloud.io/
5 下載鏡像 (stars最多的)
docker pull busybox
6 查看鏡像
docker images
7 導出鏡像爲tar包
docker save busybox > /tmp/busybox.tar (隨意找個路徑存儲就行,一般用臨時文件目錄/tmp)
8 傳給虛擬機01
scp /tmp/busybox.tar 01:/root
9 在虛擬機上導入到鏡像中
docker load < /root/busybox.tar
10 查看docker包括的鏡像
docker images
11 查看鏡像的底層信息
docker inspect centos
12 查看鏡像的製作歷史
docker history centos

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章