Skip to content

Instantly share code, notes, and snippets.

View muhammad-arif's full-sized avatar
:octocat:
Focusing

Muhammad Ariful Islam muhammad-arif

:octocat:
Focusing
View GitHub Profile
@muhammad-arif
muhammad-arif / cheatsheet-elasticsearch.md
Created September 26, 2021 20:27 — forked from ruanbekker/cheatsheet-elasticsearch.md
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl
@muhammad-arif
muhammad-arif / dockerd-api-via-curl.md
Last active May 21, 2021 04:32
Accessing Docker daemon's API endpoint (socket) with Curl

Docker Api Endpoint -> /var/run/docker.sock

GET

Listing containers (equivalent to docker ps)

curl -s --unix-socket /var/run/docker.sock http://localhost/containers/json | jq .

Listing Images (equivalent to docker images)

curl -s --unix-socket /var/run/docker.sock http://localhost/images/json | jq