-----------------------------------------------------可复制,可传播-----------------------------------------------------
1.集群的命令
2.linux 查看文件的大小
3.Dockerfile
<filecommands>
<number>1</number>
<title>build</title>
<description>使用-f 指向任何位置的Dockerfile 文件 远程的也可以指定</description>
<command>docker build -f /path/to/a/Dockerfile</command>
<number>2</number>
<title>Dockerfile 结构</title>
<description>基础镜像信息、维护者信息、镜像操作指令和容器启动时执行指令,’#’ 为 Dockerfile 中的注释。</description>
<command></command>
<number>3</number>
<title>command 6种类型</title>
<description>FROM,MAAINTAINER,RUN,ARG,CMD,EXPOSE,ENV</description>
<command></command>
<number></number>
<title></title>
<description></description>
<command></command>
<number></number>
<title></title>
<description></description>
<command></command>
<number></number>
<title></title>
<description></description>
<command></command>
<number></number>
<title></title>
<description></description>
<command></command>
</filecommands>
4.Dockerfile 参数介绍 很详细
https://www.cnblogs.com/panwenbin-logs/p/8007348.html
5.查看正在running的 容器的目录结构-进入容器交互 containerID:镜像ID
<command>docker exec -it {containerID} /bin/bash</command>
退出容器
<command>exit</command>
6.docker命令中的/bin/bash 是什么意思
<command>docker run -i -t tomcat /bin/bash</command>
<description>/bin/bash的作用是因为docker后台必须运行一个进程,否则容器就会退出,在这里表示启动容器后启动bash</description>
7.将项目直接拷贝到 容器当中
<url>参考地址:https://blog.csdn.net/yuxuan_08/article/details/74278949</url>
8.查找容器的位置
#####
网友评论