docker api 开发的端口怎么获取?
生活随笔
收集整理的這篇文章主要介紹了
docker api 开发的端口怎么获取?
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
例如運行時:
如果daemon運行時沒有指定端口,默認用unix:///var/run/docker.sock
這里的端口取決于你docker daemon綁定的端口。
相當于將默認的socket綁定在本機的2376,也就是你說的http://localhost:2376
By default the Docker daemon listens on unix:///var/run/docker.sock and the client must have root access to interact with the daemon. If a group named docker exists on your system, docker applies ownership of the socket to the group.https://docs.docker.com/engin...
如果daemon運行時沒有指定端口,默認用unix:///var/run/docker.sock
這里的端口取決于你docker daemon綁定的端口。
相當于將默認的socket綁定在本機的2376,也就是你說的http://localhost:2376
By default the Docker daemon listens on unix:///var/run/docker.sock and the client must have root access to interact with the daemon. If a group named docker exists on your system, docker applies ownership of the socket to the group.https://docs.docker.com/engin...
總結
以上是生活随笔為你收集整理的docker api 开发的端口怎么获取?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 苹果4s和4代一样吗,苹果4s与4代相似
- 下一篇: 太空行动怎么送皮肤给好友?