您现在的位置是:热点 >>正文
云计算核心技术Docker教程:Docker 守护进程dockerd绑定主机端口
热点208058人已围观
简介...
docker -H参数可以使docker守护进程在一个特定的IP和端口监听。默认情况下,它将监听 unix:///var/run/do云计cker.sock以仅允许root用户进行本地连接 。您可以将其设置为0.0.0.0:2375或特定的主机IP来授予所有人访问权限,但是不算核建议这样做,因为这样对于某人获得对运行守护程序的主机的root访问权限是微不足道的。
同样,Docker客户端可用于-H连接到自定义端心技口。Docker客户端默认将连接到unix:///var/run/docker.sock Linux和tcp://127.0.0.1:术D2376Windows。
-H 参数接受以下格式的主机和端口分配:
tcp://[host]:[port][path] or unix://pocath
例如:
tcp://->127.0.0.1启用2376TLS加密时,TCP连接到任一端口,或者2375以纯文本方式时,端口与TkeCP连接。
tcp://host:2375 ->主机上的TCP连接:2375
tcp://host:2375/path ->主机上的r教TCP连接:2375,并在所有请求之前添加路径
unix://path/to/socket -> Unix套接字位于 path/to程:/socket
-H,如果为空,则默认值为与-H传入no相同的值。
-H参数还接受TCP绑定的缩写形式:host:或host:port或:poDort
在守护程序模式下运行Docker:
$ sudo/dockerd -H 0.0.0.0:5555 &
下载ubuntu图片:
$ docker -ckH :5555 pull ubuntu
-H例如,如果您想同时监听TCP和Unix套接字,则可以使用多个
# Run docker in daemon modere
$ sudo/dockerd -H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock &am 守p;
# Download an ubuntu image, use default Unix socket
$ docker pull ubuntu
# OR u护进se the TCP port
$ docker -H tcp://127.0.0.1:2375 pull ubuntu
Tags:
相关文章
腾讯发布并开源新一代生图模型“HunyuanImage3.0”
热点腾讯混元推出并开源其最新的多模态图像生成模型 ——“混元图像3.0”(HunyuanImage3.0)。此次发布标志着该模型的参数规模已达到80B,成为首个开源的工业级原生多模态生成模型。官方表示,该...
【热点】
阅读更多标签: 腾盛博药-B 健康元集团 BRII-179 HBV功能性治愈
热点云梦级3月19日云梦级消息,腾盛博药-B(02137.HK)发布截至2025年12月31日止年度业绩,该公司取得收益人民币1860.5万元(单位下同),去年同期收益为0元;公司拥有人应占年内亏损2.2...
【热点】
阅读更多世界自然遗产有哪些
热点2021世界自然遗产十佳?2021世界自然遗产十佳第10名·伊朗(26件)【代表性的世界遗产】伊斯法罕的王侯广场王侯广场说起代表伊朗的世界遗产就是著名的伊斯法罕的王侯广场。伊斯。世界自然遗产有哪12...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.lenovo.com/gb/en/search?action=SEARCH&text=小旋风万能蜘蛛池【tg:seogoogle987】,TCu
- https://www.rookwinkel.nl/catalogsearch/result/index/?q=小旋风万能蜘蛛池【tg:seogoogle987】,DbM
- https://www.rhymezone.com/r/rhyme.cgi?typeofrhyme=oldrel&loc=nojs&Word=小旋风万能蜘蛛池【tg:seogoogle987】,xLW
- https://www.posten-portal.de/search?query=小旋风万能蜘蛛池【tg:seogoogle987】,zMm
- https://www.laoairlines.com/?action=QUERY&s=小旋风万能蜘蛛池【tg:seogoogle987】,0gO
- https://blvdseafood.com/?s=小旋风万能蜘蛛池【tg:seogoogle987】lMG
- https://www.teamlab.art/it/?submit=小旋风万能蜘蛛池【tg:seogoogle987】,p3K
- https://www.voices.com/talents/search?keywords=小旋风万能蜘蛛池【tg:seogoogle987】,7CT
- https://www.so.com/s?ie=utf-8&src=360sou_home&_re=0&q=小旋风万能蜘蛛池【tg:seogoogle987】,c0L
- https://www.vfw.org/search-results?q=小旋风万能蜘蛛池【tg:seogoogle987】,tXL
- https://www.paspaley.com/catalogsearch/result/?action=QUERY&q=小旋风万能蜘蛛池【tg:seogoogle987】,IOE
- https://www.jusoen.com/addreng.asp?p1=小旋风万能蜘蛛池【tg:seogoogle987】TL7
- https://www.tahiti-infos.com/search/小旋风万能蜘蛛池【tg:seogoogle987】,HM6
- https://www.yli.ro/catalogsearch/result/?q=小旋风万能蜘蛛池【tg:seogoogle987】,AZU
- https://www.rea.govt.nz/search?searchterm=小旋风万能蜘蛛池【tg:seogoogle987】,1Yr
- https://www.yr.no/en/search?q=小旋风万能蜘蛛池【tg:seogoogle987】,GW7
- https://www.abbreviations.com/小旋风万能蜘蛛池【tg:seogoogle987】I7e
- https://www.zisha.com/shop/list.shtml?wap_keyword=小旋风万能蜘蛛池【tg:seogoogle987】,AVE
- https://www.olx.ba/pretraga?trazilica=小旋风万能蜘蛛池【tg:seogoogle987】,eqH
- https://www.thealexandrian.net/?s=小旋风万能蜘蛛池【tg:seogoogle987】,WzX
- https://yscc1986.net/search/小旋风万能蜘蛛池【tg:seogoogle987】YaZ
- https://www.navylookout.com/?ID=nSBR6Ivdu6lZg1yr2SDs30Lo5sTs76yJ&s=小旋风万能蜘蛛池【tg:seogoogle987】,5I2
- https://www.lezhin.com/ko/tags/小旋风万能蜘蛛池【tg:seogoogle987】,HuN
- https://www.temu.com/search_result.html?search_key=小旋风万能蜘蛛池【tg:seogoogle987】l2v
- https://www.wellbees.com/index.php/catalogsearch/result/index/?q=小旋风万能蜘蛛池【tg:seogoogle987】,XIP
- https://www.seforall.org/search?keywords=小旋风万能蜘蛛池【tg:seogoogle987】,mK3
- https://www.lgnewsroom.com/search/小旋风万能蜘蛛池【tg:seogoogle987】,2Dx
- https://www.sportbiketracktime.com/index.php?route=product/search&tag=小旋风万能蜘蛛池【tg:seogoogle987】,ZOx
- https://www.remit.co.jp/ne/?s=小旋风万能蜘蛛池【tg:seogoogle987】,Tme
- https://www.kaiyueleather.com/search/小旋风万能蜘蛛池【tg:seogoogle987】,A5R
- https://www.reallywildbirdfood.co.uk/store/search?q=小旋风万能蜘蛛池【tg:seogoogle987】,L4J
- https://www.springfieldlibrary.org/?s=小旋风万能蜘蛛池【tg:seogoogle987】,P8p
- https://www.synonyms.com/antonyms/小旋风万能蜘蛛池【tg:seogoogle987】,jRL
- https://www.kores.com/?s=小旋风万能蜘蛛池【tg:seogoogle987】,LCX
- https://www.paxnet.co.kr/search/jongmok?kwd=小旋风万能蜘蛛池【tg:seogoogle987】dzY
- https://www.lauben.com/de/?s=小旋风万能蜘蛛池【tg:seogoogle987】,fs4
- https://www.routesonline.com/search/?query=小旋风万能蜘蛛池【tg:seogoogle987】,49P
- https://www.simcoemuskokahealth.org/SearchResults.aspx?SearchQuery=小旋风万能蜘蛛池【tg:seogoogle987】,xAu
- https://www.livehindustan.com/tags/小旋风万能蜘蛛池【tg:seogoogle987】,BwY
- https://www.lyrics.com/lyrics/kkk3小旋风万能蜘蛛池【tg:seogoogle987】,reg
- https://www.usslexington.com/?action=QUERY&s=小旋风万能蜘蛛池【tg:seogoogle987】,Dso
- https://www.teamlab.art/?submit=小旋风万能蜘蛛池【tg:seogoogle987】,CEF
- https://www.totolink.vn/search/小旋风万能蜘蛛池【tg:seogoogle987】,0wO
- https://www.kyuhoshi.com/?s=小旋风万能蜘蛛池【tg:seogoogle987】,YDF
- https://www.lneg.pt/en/?s=小旋风万能蜘蛛池【tg:seogoogle987】,tuT
- https://www.randjleather.co.uk/index.php?route=product/search&tag=小旋风万能蜘蛛池【tg:seogoogle987】,zcA
- https://www.riohondo.edu/?action=QUERY&s=小旋风万能蜘蛛池【tg:seogoogle987】,KRq
- https://www.lyrics.com/lyrics/小旋风万能蜘蛛池【tg:seogoogle987】,yw2
- https://www.qylaws.com/search/小旋风万能蜘蛛池【tg:seogoogle987】,Ic0
- https://www.rollingstone.it/?ID=DVMeu3AlmzZE1cuJ2FmgmO5TSCQRb3yh&s=小旋风万能蜘蛛池【tg:seogoogle987】,9yh