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' .(.表示当前目录)