优艾设计网

docker api 开发的端口怎么获取??

新版本的docker for Mac去除了docker-machine指令
我现在怎么获取 rest a优艾设计网_设计客pi 开发的端口呢?
比如:
curl -XGET http://localhost:2376/images/... | python -mjson.tool

可是,貌似不是上面的2376端口。
谢谢指教。


九翼狂舞离弦的歌离弦的歌 10小时前

优艾设计网_Photoshop论坛

例如运行时:


88651688 10小时前

优艾设计网_设计圈

如果daemon运行时没有指定端口,默认用unix:///var/run/docker.sock


天天去刷牙 10小时前

这里的端口取决于你docke优艾设计网_电脑技术r daemon绑定的端口。


柱头 优艾设计网_Photoshop问答 10小时前

相当于将默认的socket绑定在本机的2376,也就是你说的http://localhost:2376


双儿~ 10小时前

By default the Docker daemon listens on unix:///var/run/docker.sock and the cl优艾设计网_PS问答ient 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...


0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜