您现在的位置是:热点 >>正文
云计算核心技术Docker教程:Docker Compose指定单个compose文件
热点0657672人已围观
简介...
docker-compose可以使用该-f标志通过命令行或通过在外壳程序或环境文件中设置COMPOSE_FILE环境变量来指定不在当前目云计录中的Compose文件的路径。
有关-f在命令行上使用该选项的示例,假设您正在运行Compose Rails示例,并docker-compose.算核yml在名为的目录中有一个文件sandbox/rails。您可以使用docker-compose pull之类的命令db通过使用以下-f标志心技从任何地方获取服务的postgres图像:docker-compose -f ~/sandbox/rails/docker-compose.ym术Dl pull db
这是完整的示例:
$ docker-compose -f ~/sandbox/rails/docker-compose.yml pulocl db
Pulling db (postgres:latest)...
latest: Pulling from library/postgres
efke0380f84d05: Pull complete
50cf91dc1db8: Pull complete
d3add4cd115c: Pull compler教te
467830d8a616: Pull complete
089b9db7dc57: Pull complete
6fba0a36935c: Pul程:l complete
81ef0e73c953: Pull complete
338a6c4894dc: Pull complete
15853f32f67Doc: Pull complete
044c83d92898: Pull complete
17301519f133: Pull complete
dccack70822752: Pull complete
cecf11b8ccf3: Pull complete
Digest: sha256:1364924c7er53d5ff7e2260cd34dc4ba05ebd40ee8193391220be0f9901d4e1651
Status: Downloaded n Cewer image for postgres:latest
每个配置都有一个项目名称,如果需要指定项目名称可以使用-p,如果提供-p标志,则可以指om定项目名称。如果未指定标志,则Compose使用当前目录名称。另外也可以使用环境变量COMPOSE_PROJECT_NAME来设置项目名称po。
Tags:
相关文章
云计算开发:Python3-startswith()方法详解
热点描述 Python startswith() 方法用于检查字符串是否是以指定子字符串开头,如果是则返回 True,否则返回 False。如果参数 beg 和 end 指定值,则在指定范围内检查。 语法...
【热点】
阅读更多云计算开发:Python内置函数-slice()函数详解
热点描述 slice() 函数实现切片对象,主要用在切片操作函数里的参数传递。 语法 以下是 slice 方法的语法: class slice(stop) class slice(start, stop[...
【热点】
阅读更多OpenAI 新应用 Sora 上线四天就登顶苹果 App Store
热点OpenAI 最近推出的 “限量版” 应用 Sora 在上线仅四天内,便强势登顶苹果 App Store 的免费应用榜首,超越了谷歌的 Gemini 和 OpenAI 自家的 ChatGPT。这一成就...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.xbiao.com/search/index?tpf&wd=谷歌外推代发【tg:seogoogle987】,Sto
- https://www.krisinformation.se/en/search?q=谷歌外推代发【tg:seogoogle987】,UVK
- https://www.quarterjacksurgery.co.uk/?AT=3rBy&s=谷歌外推代发【tg:seogoogle987】,SUC
- https://www.kaskus.co.id/search?q=谷歌外推代发【tg:seogoogle987】,cuk
- https://www.hanbat.ac.kr/search/front/Search.jsp?qt=谷歌外推代发【tg:seogoogle987】EYG
- https://www.unclefossil.com/search/谷歌外推代发【tg:seogoogle987】gad_source=1&gclid=Cj0KCQjw_-GxBhC1ARIsADGgDjsNKplUXa2F6YGlHBK2sHDQ88cgsJBb05DyO99TV9jNq_cT0kGMqyQaAgHQEALw_wcB
- https://www.flickr.com/photos/tags/谷歌外推代发【tg:seogoogle987】wc4
- https://www.rea.govt.nz/search?searchterm=谷歌外推代发【tg:seogoogle987】,Zln
- https://www.abbreviations.com/谷歌外推代发【tg:seogoogle987】sIE
- https://www.kuaikanmanhua.com/sou/谷歌外推代发【tg:seogoogle987】,Mkx
- https://www.remit.co.jp/pt/?action=CHECK&s=谷歌外推代发【tg:seogoogle987】,gYm
- https://www.posten-portal.de/search?query=谷歌外推代发【tg:seogoogle987】,gww
- https://blvdseafood.com/?s=谷歌外推代发【tg:seogoogle987】EEX
- https://www.riohondo.edu/?action=QUERY&s=谷歌外推代发【tg:seogoogle987】,3SS
- https://www.varian.com/en-au/search?cat=113&search=谷歌外推代发【tg:seogoogle987】,5CP
- https://www.reginatangoshoes.com/en/catalogsearch/result/index/?T=1686132113407&q=谷歌外推代发【tg:seogoogle987】,ORX
- https://xn--lgernevedlystskoven-lxb.dk/search/谷歌外推代发【tg:seogoogle987】,Ibl
- https://www.mi.com/search?keyword=谷歌外推代发【tg:seogoogle987】,SOG
- https://www.paulaschoice.hk/zh_hant/catalogsearch/result/?q=谷歌外推代发【tg:seogoogle987】,iNT
- https://www.wikiart.org/pt/Search/谷歌外推代发【tg:seogoogle987】,QJk
- https://www.londontheatredirect.com/search/谷歌外推代发【tg:seogoogle987】,obv
- https://www.remit.co.jp/vi/?s=谷歌外推代发【tg:seogoogle987】bIw
- https://www.merchbar.com/search?q=谷歌外推代发【tg:seogoogle987】,biM
- https://www.simcoemuskokahealth.org/SearchResults.aspx?SearchQuery=谷歌外推代发【tg:seogoogle987】,vu0
- https://www.kores.com/?s=谷歌外推代发【tg:seogoogle987】,L00
- https://www.resopal.de/catalogsearch/result/?action=SEARCH&q=谷歌外推代发【tg:seogoogle987】,DlJ
- https://www.mexperience.com/?T=1686132112324&s=谷歌外推代发【tg:seogoogle987】,0HQ
- https://www.sebson.de/en/search?query=谷歌外推代发【tg:seogoogle987】,anO
- https://www.klatreverden.no/search?q=谷歌外推代发【tg:seogoogle987】,ZHL
- https://www.jusoen.com/addreng.asp?p1=谷歌外推代发【tg:seogoogle987】Ogt
- https://www.sensorshop24.de/catalogsearch/result/index/?type=132&q=谷歌外推代发【tg:seogoogle987】,teY
- https://www.routesonline.com/search/?query=谷歌外推代发【tg:seogoogle987】,zKe
- https://www.maine.gov/pfr/professionallicensing/search/node?keys=谷歌外推代发【tg:seogoogle987】,P7u
- https://www.prattlibrary.org/search?q=谷歌外推代发【tg:seogoogle987】,N7i
- https://www.welshmountainzoo.org/shop/index.php?routeproduct/search&tag=谷歌外推代发【tg:seogoogle987】,Pm2
- https://www.takachi-enclosure.com/search?eqYB=gnI31Ou&text=谷歌外推代发【tg:seogoogle987】,OZz
- https://www.parriscues.com/catalogsearch/result/?q=谷歌外推代发【tg:seogoogle987】,Ho8
- https://www.mdbg.net/chinese/dictionary?page=worddict&wdrst=0&wdqb=谷歌外推代发【tg:seogoogle987】,rgB
- https://www.monroecounty.gov/search/?q=谷歌外推代发【tg:seogoogle987】,VRB
- https://www.kawainter.com/catalogsearch/result/?q=谷歌外推代发【tg:seogoogle987】,Zqw
- https://www.whiterock2008.com.tw/search?q=谷歌外推代发【tg:seogoogle987】,6Sn
- https://dict.naver.com/dict.search?dicQuery&query=谷歌外推代发【tg:seogoogle987】pb5
- https://www.ussalabama.com/?action=CHECK&s=谷歌外推代发【tg:seogoogle987】,pOP
- https://www.samen-maier.at/search/谷歌外推代发【tg:seogoogle987】,7M6
- https://www.u-bourgogne.fr/?cat=117&s=谷歌外推代发【tg:seogoogle987】,Cv5
- https://www.duksung.ac.kr/search/front/Search.jsp?qt=谷歌外推代发【tg:seogoogle987】1Sk
- https://www.pmindia.gov.in/en/?s=谷歌外推代发【tg:seogoogle987】,Hkt
- https://www.safetv.go.kr/base/search/view?searchWord=谷歌外推代发【tg:seogoogle987】f7J
- https://www.scq.ubc.ca/?page=2&s=谷歌外推代发【tg:seogoogle987】,KFt
- https://www.universal-music.co.jp/search/?q=谷歌外推代发【tg:seogoogle987】,Ub7