什么是“docker run -d”的等效远程api命令? [英] What is equivalent remote api command to 'docker run -d'?

查看:235
本文介绍了什么是“docker run -d”的等效远程api命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过远程api调用docker命令。

I'm trying to call docker commands via remote api.

Docker远程api似乎没有独立模式选项。
http://docs.docker.io/en/latest/命令行/命令/运行/

Docker remote api does not seem to have 'Detached mode' option. http://docs.docker.io/en/latest/commandline/command/run/

我可以在bash中使用这个应用程序,我想通过远程api使用这个应用程序。
https://github.com/grigio/docker-stringer

I could use this app in the bash, and I would like to use this via remote api. https://github.com/grigio/docker-stringer

推荐答案

确实,远程API没有'dettach'模式,因为'attach'模式是一个额外的端点。

Indeed, the remote API does not have a 'dettach' mode as the 'attach' mode is an extra endpoint.

如果要使用远程API运行在分离模式,只需创建并启动您的容器,而不附加它。

If you want to run in detach mode with the remote API, simply create and start your container without attaching to it.

这篇关于什么是“docker run -d”的等效远程api命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆