I just want to create a service using docker. i created using command line but i didn't find rest call for doing the same . regret if its a silly question please do help i am a beginer
Asked
Active
Viewed 2,692 times
0
-
Which base image are you using? Did you add any application yourself? – Rao Oct 21 '16 at 08:38
-
i am using ubuntu 12.4 image i have installed Docker Version 1.12.1 – Vishnu Ranganathan Oct 21 '16 at 09:06
1 Answers
1
The docker
command line calls into the Docker Remote API - which is a REST API that you can use yourself. The API listens on a Unix socket, but the docs tell you how to expose it via TCP as well.
You can make direct HTTP calls to do anything the command line does, e.g. managing containers:
POST /containers/create ...
POST /containers/e90e34656806/start
And there are high-level client libraries various languages, like Go and .NET.

Elton Stoneman
- 17,906
- 5
- 47
- 44
-
Thanks Elton from your reference i found exactly what i need. – Vishnu Ranganathan Oct 21 '16 at 12:13