0

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

Vishnu Ranganathan
  • 1,277
  • 21
  • 45

1 Answers1

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