https://github.com/dotansimha/docker-node-graphql-api
Docker engine remote API using GraphQL
https://github.com/dotansimha/docker-node-graphql-api
Last synced: 8 months ago
JSON representation
Docker engine remote API using GraphQL
- Host: GitHub
- URL: https://github.com/dotansimha/docker-node-graphql-api
- Owner: dotansimha
- Created: 2019-01-01T20:47:11.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T01:07:46.000Z (about 3 years ago)
- Last Synced: 2025-03-30T22:31:57.417Z (10 months ago)
- Language: TypeScript
- Homepage: https://cloud.docker.com/u/dotansimha/repository/docker/dotansimha/docker-remote-graphql-api
- Size: 208 KB
- Stars: 21
- Watchers: 3
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Docker GraphQL API
This repo contains the source code of `dotansimha/docker-remote-graphql-api` docker image.
This image should run on the same server as your Docker engine, and it exposes GraphQL API for the Docker internal API.
It's useful if you need to have an easy API for Docker, for use cases like containers pool.
It's using [node-docker-api](https://www.npmjs.com/package/node-docker-api) behind the scenes, and exposes an easy-to-use GraphQL API.
## How to use?
```
docker run --name docker-api-graphql -d -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock dotansimha/docker-remote-graphql-api
```
Your GraphQL API will be available now in: `http://YOUR-SERVER:8080/graphql`
If you wish to have disable access to the GraphQL Playground (GraphiQL), add `-e NODE_ENV-"production"` to your run command.