Skip to content

aurickislam/docker-api-swagger-oatpp

Repository files navigation

docker-api-swagger-oatpp

Swagger UI for Docker Engine API written in C++ based on Oat++ web framework.

Before using it you have to open Docker Engine API port on server where you are running docker. Follow these steps:

  1. Create a file at /etc/systemd/system/docker.service.d/startup_options.conf with the below contents:
    # /etc/systemd/system/docker.service.d/override.conf
    [Service]
    ExecStart=
    ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2375
    

    Note: The -H flag binds dockerd to a listening socket, either a Unix socket or a TCP port. You can specify multiple -H flags to bind to multiple sockets/ports. The default -H fd:// uses systemd's socket activation feature to refer to /lib/systemd/system/docker.socket.

  2. Reload the unit files:
    sudo systemctl daemon-reload
  3. Restart the docker daemon with new startup options:
    sudo systemctl restart docker.service
  4. Ensure that anyone that has access to the TCP listening socket is a trusted user since access to the docker daemon is root-equivalent.

Build

mkdir build && cd build
cmake ..
make -j $(nproc)

Run

./docker-api-swagger

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published