Dockerfile 檔案格式

2021-08-20 07:44:56 字數 758 閱讀 9662

##  dockerfile檔案格式

# this dockerfile uses the ubuntu image

# version 2 - edition 1

# author: docker_user

# command format: instruction [arguments / command] ..

# 1、第一行必須指定 基礎映象資訊

from ubuntu

# 2、維護者資訊

maintainer docker_user [email protected]

# 3、映象操作指令

run echo "deb raring main universe" >> /etc/apt/sources.list

run apt-get update && apt-get install -y nginx

run echo "\ndaemon off;" >> /etc/nginx/nginx.conf

# 4、容器啟動執行指令

cmd /usr/sbin/nginx

dockerfile 分為四部分:基礎映象資訊、維護者資訊、映象操作指令、容器啟動執行指令。一開始必須要指明所基於的映象名稱,接下來一般會說明維護者資訊;後面則是映象操作指令,例如 run 指令。每執行一條run 指令,映象新增新的一層,並提交;最後是 cmd 指令,來指明執行容器時的操作命令。

Oracle 控制檔案格式ctl檔案格式

options skip 1,errors 10 load data characterset zhs16gbk infile into table table name truncate fields terminated by optionally enclosed by trailing nu...

檔案格式 gff格式

gff檔案格式 gff格式是 sanger 研究所定義,是一種簡單的 方便的對於 dna rna以及蛋白質序列的特徵進行描述的一種資料格式,已經成為序列注釋的通用格式,比如基因組的基因 許多軟體都支援輸入或者輸出gff格式。前格式定義的最新版本是版本3。原始定義見 song websitegff是存...

DOS檔案格式 與 UNIX檔案格式 轉換

這裡闡述兩種方法 1.使用vim的方法 在vim下 使用如下命令 set fileformat unix 就可轉換成 unix 檔案格式,也可使用其縮寫形式命令 set ff unix 直接輸入命令 set fileformat 或 set ff 還可查詢當前的命令格式。2.使用linux命令工具 ...