docker info
docker images [OPTIONS] [REPOSITORY]
-a,--all=false 默認並不顯示中間層鏡像nginx
docker inspect [OPTIONS] CONTAINER|IMAGE [CONTAINER|IMAGE...]
docker rmi [OPTIONS] IMAGE [IMAGE...]
-f,--force=false Force removal of the imagedocker
docker search [OPTIONS] TERM
--automated=false Only show automated buildsubuntu
docker pull [OPTIONS] NAME [:TAG]
-a.--all-tags=false Download all tagged images in the repositoryui
docker push NAME[:TAG]
輸入DockerHub上的用戶名,密碼,註冊郵箱url
docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]
-a, --authof="" Author. eg. "John Hannibal Smith Hannibal@a-team.com"spa
docker build [OPTIONS] PATH | URL | - (path,url指dockerfile構建的文件路徑)
--force-rm=false代理
#First Dockerfile FROM ubuntu:14.04 MAINTAINER dormancypress "dormancypress@outlook.com" RUN apt-get update RUN apt-get install -y nginx EXPOSE 80
docker build -t='dormancypress/df_test1' .(.表示當前目錄)