摘要:
Usage: docker image COMMAND Manage images Commands: build 从Dockerfile中构建镜像 history 显示镜像历史信息,如元数据等。。。 import Import the contents from a tarball to crea 阅读全文
摘要:
docker container [COMMAND] 命令: **exec 在容器中执行命令** export 将容器的文件系统导出为tar归档文件(和docker save的区别在于,save会记录有所有修改,体制较大,export只是当时overlay层) kill 杀死一个或多个正在运行的容器 阅读全文
摘要:
通过使用dockerfile自动构建新的镜像。 常用命令: FROM 指定新镜像是基于哪个镜像制作(基础镜像) LABEL 指定镜像的标签名(可选) RUN 在创建镜像时运行的shell命令 COPY 拷贝文件或目录到该镜像中(推荐!少用ADD) ADD 解压压缩包并复制 ENV 设置环境变量 US 阅读全文
摘要:
wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo -O /etc/yum.repos.d/docker-ce.repo yum -y install docker-ce systemctl enable doc 阅读全文