日日操夜夜添-日日操影院-日日草夜夜操-日日干干-精品一区二区三区波多野结衣-精品一区二区三区高清免费不卡

公告:魔扣目錄網(wǎng)為廣大站長提供免費(fèi)收錄網(wǎng)站服務(wù),提交前請做好本站友鏈:【 網(wǎng)站目錄:http://www.ylptlb.cn 】, 免友鏈快審服務(wù)(50元/站),

點(diǎn)擊這里在線咨詢客服
新站提交
  • 網(wǎng)站:51998
  • 待審:31
  • 小程序:12
  • 文章:1030137
  • 會員:747

雖然Docker history命令可以看到所有歷史層級的操作,但是還是需要手動去寫Dockerfile

dfimage就是這樣一個(gè)工具

dfimage是一個(gè)alpine的鏡像,啟動的時(shí)候,通過將docker.sock映射到容器內(nèi)部來運(yùn)行,通常將這個(gè)操作做成別名

下載鏡像

docker run -v /var/run/docker.sock:/var/run/docker.sock --rm alpine/dfimage:latest

設(shè)置別名

alias dfimage="docker run -v /var/run/docker.sock:/var/run/docker.sock --rm alpine/dfimage:latest"

測試Nginx查看

1、先pull下nginx鏡像

docker pull nginx:latest

2、測試

dfimage -sV=1.36 nginx:latest

輸出的結(jié)果

Analyzing nginx:latest
Docker Version: 19.03.12
GraphDriver: overlay2
Environment Variables
|PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|NGINX_VERSION=1.21.0
|NJS_VERSION=0.5.3
|PKG_RELEASE=1~buster

Open Ports
|80

Image user
|User is root

Potential secrets:
Dockerfile:
CMD ["bash"]
LABEL maintainer=NGINX Docker Maintainers <docker-maint@nginx.com>
ENV NGINX_VERSION=1.21.0
ENV NJS_VERSION=0.5.3
ENV PKG_RELEASE=1~buster
RUN set -x  
    && addgroup --system --gid 101 nginx  
    && adduser --system --disabled-login --ingroup nginx --no-create-home --home /nonexistent --gecos "nginx user" --shell /bin/false --uid 101 nginx  
    && apt-get update  
    && apt-get install --no-install-recommends --no-install-suggests -y gnupg1 ca-certificates  
    && NGINX_GPGKEY=573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62; found=''; for server in ha.pool.sks-keyservers.net hkp://keyserver.ubuntu.com:80 hkp://p80.pool.sks-keyservers.net:80 pgp.mit.edu ; do echo "FetchingGPG key $NGINX_GPGKEY from $server"; apt-key adv --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$NGINX_GPGKEY"  
    && found=yes  
    && break; done; test -z "$found"  
    && echo >&2 "error: failed to fetch GPG key $NGINX_GPGKEY"  
    && exit 1; apt-get remove --purge --auto-remove -y gnupg1  
    && rm -rf /var/lib/apt/lists/*  
    && dpkgArch="$(dpkg --print-architecture)"  
    && nginxPackages=" nginx=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-xslt=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-geoip=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-image-filter=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-njs=${NGINX_VERSION}+${NJS_VERSION}-${PKG_RELEASE} "  
    && case "$dpkgArch" in amd64|i386|arm64) echo "deb https://nginx.org/packages/mainline/debian/ buster nginx" >> /etc/apt/sources.list.d/nginx.list  
    && apt-get update ;; *) echo "deb-src https://nginx.org/packages/mainline/debian/ buster nginx" >> /etc/apt/sources.list.d/nginx.list  
    && tempDir="$(mktemp -d)"  
    && chmod 777 "$tempDir"  
    && savedAptMark="$(apt-mark showmanual)"  
    && apt-get update  
    && apt-get build-dep -y $nginxPackages  
    && ( cd "$tempDir"  
    && DEB_BUILD_OPTIONS="nocheck parallel=$(nproc)" apt-get source --compile $nginxPackages )  
    && apt-mark showmanual | xargs apt-mark auto > /dev/null  
    && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; }  
    && ls -lAFh "$tempDir"  
    && ( cd "$tempDir"  
    && dpkg-scanpackages . > Packages )  
    && grep '^Package: ' "$tempDir/Packages"  
    && echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list  
    && apt-get -o Acquire::GzipIndexes=false update ;; esac  
    && apt-get install --no-install-recommends --no-install-suggests -y $nginxPackages gettext-base curl  
    && apt-get remove --purge --auto-remove -y  
    && rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/nginx.list  
    && if [ -n "$tempDir" ]; then apt-get purge -y --auto-remove  
    && rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; fi  
    && ln -sf /dev/stdout /var/log/nginx/access.log  
    && ln -sf /dev/stderr /var/log/nginx/error.log  
    && mkdir /docker-entrypoint.d
COPY file:65504f71f5855ca017fb64d502ce873a31b2e0decd75297a8fb0a287f97acf92 in /
    docker-entrypoint.sh

COPY file:0b866ff3fc1ef5b03c4e6c8c513ae014f691fb05d530257dfffd07035c1b75da in /docker-entrypoint.d
    docker-entrypoint.d/
    docker-entrypoint.d/10-listen-on-ipv6-by-default.sh

COPY file:0fd5fca330dcd6a7de297435e32af634f29f7132ed0550d342cad9fd20158258 in /docker-entrypoint.d
    docker-entrypoint.d/
    docker-entrypoint.d/20-envsubst-on-templates.sh

COPY file:09a214a3e07c919af2fb2d7c749ccbc446b8c10eb217366e5a65640ee9edcc25 in /docker-entrypoint.d
    docker-entrypoint.d/
    docker-entrypoint.d/30-tune-worker-processes.sh

ENTRYPOINT ["/docker-entrypoint.sh"]
EXPOSE 80
STOPSIGNAL SIGQUIT
CMD ["nginx" "-g" "daemon off;"]

通過dfimage去生成nginx的Dockerfile,其實(shí)就是啟動一個(gè)容器工具,執(zhí)行完之后即刪除

分享到:
標(biāo)簽:Dockerfile
用戶無頭像

網(wǎng)友整理

注冊時(shí)間:

網(wǎng)站:5 個(gè)   小程序:0 個(gè)  文章:12 篇

  • 51998

    網(wǎng)站

  • 12

    小程序

  • 1030137

    文章

  • 747

    會員

趕快注冊賬號,推廣您的網(wǎng)站吧!
最新入駐小程序

數(shù)獨(dú)大挑戰(zhàn)2018-06-03

數(shù)獨(dú)一種數(shù)學(xué)游戲,玩家需要根據(jù)9

答題星2018-06-03

您可以通過答題星輕松地創(chuàng)建試卷

全階人生考試2018-06-03

各種考試題,題庫,初中,高中,大學(xué)四六

運(yùn)動步數(shù)有氧達(dá)人2018-06-03

記錄運(yùn)動步數(shù),積累氧氣值。還可偷

每日養(yǎng)生app2018-06-03

每日養(yǎng)生,天天健康

體育訓(xùn)練成績評定2018-06-03

通用課目體育訓(xùn)練成績評定