您现在的位置是:热点 >>正文
如何从Docker镜像中提取Dockerfile?
热点180人已围观
简介...
哈喽哈喽大家好,小编今天又有新发现!
今天在技术群摸鱼,有朋友问个docker如何的问题,替换配置文件不生效,也没有原先的Dockerfile,所以就在想,有没有什么方式可以直从D接从容器或镜像生成Dockerfile
虽然docker history命令可以看到所有历史层级的操oc作,但是还是需要手动去写Dockerfile
google一番,发现dfimage就是这样一个工具
dkefimage是一个alpine的镜像,启动的时候,通过将docker.sock映射到容器内r镜部来运行,通常将这个操作做成别名
alias dfimage="docker&nb像中sp;run -v /var/run/docker.sock:/var/ru提取n /docker.sock --rm alpine/dfimagDoe" dfimage -sV=1.36 cknginx:latest
我们拿nginx镜像试验下
先pull一个nginx镜像,er我这里之前有,就直接用了,接着通过上面提到的命令,别名一个dfimage命令
做好别名之后,通fi过dfimage去生成nginx的Dockerfile,其实就是启动一个容器工具,执行完之le后即删除
即可看到完整的Dockerfile
参考:https://hub.docker.c如何om/repository/docker/alpine/dfimage
本文转载自微信公众号「运从D维研习社」
Tags:
相关文章
开山鼻祖遭“贱卖” DPU还是好赛道吗?
热点没想到跻身为第三大算力芯片DPU的市场被最近的消息兜头一盆冷水:微软宣布以1.9亿美元收购DPU先驱Fungible。 如此“骨折”价让业界难免唏嘘。对比英伟达在2020年以69亿美元收购了全球智能网...
【热点】
阅读更多Reddit CEO直言:AI聊天机器人并未带来流量红利,搜索仍是核心引擎
热点尽管OpenAI、Google等科技巨头正大力推动AI聊天机器人作为新一代搜索入口,Reddit首席执行官Steve Huffman在公司2025年第三季度财报电话会上明确表示:AI聊天机器人目前并非...
【热点】
阅读更多云安全日报210420:Ubuntu配套服务位置协议发现执行任意代码漏洞,需要尽快升级
热点OpenSLP(ServiceLocationProtocol,服务位置协议)是OpenSLP项目开发的一个IETF标准协议,用于在互联网内动态的服务发现。该协议支持通过服务的类型、属性在网络中查寻服...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.vfw.org/search-results?q=谷歌留痕软件【tg:seogoogle987】,2CW
- https://www.impactpool.org/search/?type=79&q=谷歌留痕软件【tg:seogoogle987】blg
- https://www.parriscues.com/catalogsearch/result/?q=谷歌留痕软件【tg:seogoogle987】,rST
- https://www.parl.ca/legisinfo/fr/projets-de-loi?parlsession=all&view=list&keywords=谷歌留痕软件【tg:seogoogle987】,MLe
- https://www.stormberg.com/no/search?q=谷歌留痕软件【tg:seogoogle987】,NlC
- https://www.teamlab.art/ko/?submit=谷歌留痕软件【tg:seogoogle987】,rS0
- https://search.danawa.com/dsearch.php?query=谷歌留痕软件【tg:seogoogle987】2lT
- https://www.nyif.com/catalogsearch/result/?q=谷歌留痕软件【tg:seogoogle987】,yV0
- https://www.vivaraise.fr/catalogsearch/result/?q=谷歌留痕软件【tg:seogoogle987】,YgJ
- https://www.udc.co.uk/index.php?route=product/search&sort=p.price&order=DESC&tag=谷歌留痕软件【tg:seogoogle987】,fO3
- https://www.wellbees.com/catalogsearch/result/?action=CHECK&q=谷歌留痕软件【tg:seogoogle987】,GYS
- https://www.searcychamber.com/list/search?AsfnA=DtkTQzs&q=谷歌留痕软件【tg:seogoogle987】,CBK
- https://www.takachi-enclosure.com/search?eqYB=gnI31Ou&text=谷歌留痕软件【tg:seogoogle987】,Ll2
- https://www.zisha.com/shop/list.shtml?wap_keyword=谷歌留痕软件【tg:seogoogle987】,8nz
- https://store.line.me/search/sticker/ja?q=谷歌留痕软件【tg:seogoogle987】vt8
- https://www.hanbat.ac.kr/search/front/Search.jsp?qt=谷歌留痕软件【tg:seogoogle987】AiK
- https://www.remit.co.jp/en/?s=谷歌留痕软件【tg:seogoogle987】,iIC
- https://www.lechzuers.com/de/search?cat=163&q=谷歌留痕软件【tg:seogoogle987】,o1y
- https://www.nuovabai.it/catalogsearch/result/?action=SEARCH&q=谷歌留痕软件【tg:seogoogle987】,D1d
- https://www.lneg.pt/en/?s=谷歌留痕软件【tg:seogoogle987】,fC7
- https://www.spicebar.de/catalogsearch/result/?q=谷歌留痕软件【tg:seogoogle987】,Cdr
- https://www.partilerdunyasi.com/index.php?route=product/search&tag=谷歌留痕软件【tg:seogoogle987】,Gnl
- https://www.yr.no/en/search?q=谷歌留痕软件【tg:seogoogle987】,0UK
- https://www.nctsn.org/search?cat=191&query=谷歌留痕软件【tg:seogoogle987】,FzK
- https://www.pearlstonecenter.org/search/谷歌留痕软件【tg:seogoogle987】,1ZN
- https://www.silentiumpc.com/en/search/谷歌留痕软件【tg:seogoogle987】,uDo
- https://www.kingston.gov.uk/site-search/results/?q=谷歌留痕软件【tg:seogoogle987】,AFf
- https://www.normani.de/search?q=谷歌留痕软件【tg:seogoogle987】,wPy
- https://www.goodreads.com/quotes/tag/谷歌留痕软件【tg:seogoogle987】G25
- https://www.rotherham.gov.uk/site-search/results/?q=谷歌留痕软件【tg:seogoogle987】,vCW
- https://www.sebson.de/en/search?query=谷歌留痕软件【tg:seogoogle987】,9AZ
- https://www.teamlab.art/fr/?submit=谷歌留痕软件【tg:seogoogle987】,Jlr
- https://www.writingforward.com/?action=SEARCH&s=谷歌留痕软件【tg:seogoogle987】,bbz
- https://www.msrenewal.com/search/谷歌留痕软件【tg:seogoogle987】,LUV
- https://www.whiterock2008.com.tw/search?q=谷歌留痕软件【tg:seogoogle987】,If4
- https://nicolazzi.it/en/?s=谷歌留痕软件【tg:seogoogle987】,nWV
- https://www.remit.co.jp/zh/?s=谷歌留痕软件【tg:seogoogle987】,NxD
- https://www.goodreads.com/quotes/tag/谷歌留痕软件【tg:seogoogle987】2GO
- https://www.xbiao.com/search/index?tpf&wd=谷歌留痕软件【tg:seogoogle987】,WJX
- https://www.lssystems.co.uk/search?page=0&per_page=24&term=谷歌留痕软件【tg:seogoogle987】,i3s
- https://www.remit.co.jp/vi/?s=谷歌留痕软件【tg:seogoogle987】XZw
- https://www.remit.co.jp/ne/?s=谷歌留痕软件【tg:seogoogle987】,JrA
- https://www.so.com/s?ie=utf-8&src=360sou_home&_re=0&q=谷歌留痕软件【tg:seogoogle987】,Zha
- https://www.mynextmove.org/find/search?s=谷歌留痕软件【tg:seogoogle987】,uIv
- https://www.schenckprocess.com/search?q=谷歌留痕软件【tg:seogoogle987】,Tfk
- https://www.uctronics.com/catalogsearch/result/?q=谷歌留痕软件【tg:seogoogle987】,MBP
- https://www.resilienz-akademie.com/?cat=71&s=谷歌留痕软件【tg:seogoogle987】,jzI
- https://www.wuv.edu/?s=谷歌留痕软件【tg:seogoogle987】,Uwy
- https://xn--lgernevedlystskoven-lxb.dk/search/谷歌留痕软件【tg:seogoogle987】,R2g
- https://www.niaogebiji.com/pc/article/search?keyword=谷歌留痕软件【tg:seogoogle987】,6EG