删除镜像
docker rmi 镜像名字nginx
查找镜像:
Docker Hub :http://registry.hub.docker.com
docker search [options] term
--automated =false
--no-trunc=falsedocker
拉取镜像:
docker pull [options] name:tag
ubuntu
推送镜像:
docker push
ui
构建镜像:
一、保存对容器的修改,并再次使用
二、自定义镜像的能力
三、以软件的形式打包并分发服务及运行环境
orm
docker commit:经过容器构建
docker commit [options] container[repository[:tag]]
-a,--auth
-m,--message
-p,pause =true
get
docker build:经过dockerfile文件构建
一、 建立dockerfile文件
#first dockerfile
FROM docker.io/ubuntu:latest
MAINtAINER dormancypress "abc@126.com"
RUN apt-get update
RUN apt-get install -y nginx
expose 80
二、docker build -t=名字dockerfile