docker REST api



To enable docker REST API (essentially all computer that has docker installed, you can open up to the world via REST Api)

Just do a

"docker version", you can see that we have API version 1.35 installed.

Client:
 Version:       17.12.1-ce
 API version:   1.35
 Go version:    go1.10.1
 Git commit:    7390fc6
 Built: Wed Apr 18 01:23:11 2018
 OS/Arch:       linux/amd64


Then exposed your docker REST API via tcp using the following command :- 

sudo docker -H tcp://0.0.0.0:2375

You're ready to interact with it. 

http://cap-docker-poc:2375/v1.35/images/json




Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm