docker version
docker info
docker ps
Docker 包括三個基本概念:映像檔(Image)、容器(Container)、倉庫(Repository)
容器是執行映像檔後產生的,也就是說,映像檔就像系統光碟,安裝完就有個系統可以用,這個安裝後產生的系統就是容器。
下載 Kitematic,下載,解壓縮到Kitematic目錄下,並搬到 C:\Program Files\Docker\ 下即可。
到右下角工作匣的docker圖示執行 Kitematic (這樣才能正確運作)
接著就可以透過他來搜尋、安裝映像檔。
查找映像檔:
docker search 關鍵字
docker search portainer
得到結果如:
PS C:\Users\tad> docker search portainer
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
portainer/portainer Making Docker management easy. https://porta… 1100
hypriot/rpi-portainer A web interface for the Docker engine. Dead … 42
portainer/agent An agent used to manage all the resources in… 27
portainer/templates App Templates for Portainer http://portainer… 13
portainer/golang-builder Utility to build Golang binaries. 3 [OK]
lihaixin/portainer docker ui 3 [OK]
stefanscherer/portainer Portainer for Windows 1809 and some older In… 2
portainerci/portainer Portainer images automatically created via P… 2
softonic/portainer-endpoint Allows auto register all the swarm nodes in … 1 [OK]
hassioaddons/portainer 1
voltha/voltha-portainer Portainer support for VOLTHA 0
rancher/portainer-agent 0
nenadilic84/portainer 0
portainerci/agent Portainer agent images automatically created… 0
flochtililoch/armv7l-portainer 0
portainer/base Multi-stage build image to create the Portai… 0 [OK]
rodjers/portainer Swarm portainer 0
helloysd/portainer 0
11384eb/portainer 0
ssbkang/portainer 0
scififarms/technocore-portainer The Portainer component of TechnoCore. Provi… 0 [OK]
portainer/angular-builder Builder image for Portainer frontend. 0 [OK]
j0nnylester/portainer portainer running on a Raspberry Pi 0
jiangxinshang/portainer 可在loongson的mips64el平台运行的portainer 0
ollijanatuinen/portainer debug/development versions of portainer 0
PS C:\Users\tad>
docker pull portainer/portainer
docker run 參數 映像檔名稱
docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v d:\tad\portainer:/data portainer/portainer