GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wsjcpp/wsjcpp-docker-api: C++ wrapper for docker-api (used curl inside)

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
docker-docs
docker-docs
 
 
src.wsjcpp
src.wsjcpp
 
 
src
src
 
 
unit-tests.wsjcpp
unit-tests.wsjcpp
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build_simple.sh
build_simple.sh
 
 
wsjcpp.yml
wsjcpp.yml
 
 

Repository files navigation

wsjcpp-docker-api

Build Status Github Stars Github Stars Github Forks Total alerts Language grade: C/C++

C++ implementation for docker-api (used curl)

Main documentation for docker here:

https://docs.docker.com/engine/api/v1.40/

Integrate to your project

$ wsjcpp install "https://github.com/wsjcpp/wsjcpp-docker-api:master"

or include files:

  • src.wsjcpp/nlohmann_json/json.hpp
  • src.wsjcpp/wsjcpp_core/wsjcpp_core.h
  • src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp
  • src/wsjcpp_docker_api.h
  • src/wsjcpp_docker_api.cpp

How to use

#include <wsjcpp_core.h>
#include <wsjcpp_docker_api.h>

... 

// get default unix socket path (for linux and for mac)
std::string sUnixSocketPath = dockerApi.getDefaultUnixSocketPath();
if (!dockerApi.doConnectUnixSocketPath(sUnixSocketPath) ) {
    WsjcppLog::err(TAG, "Could not connect to '" + sUnixSocketPath + "'");
    return -1;
}

// get list of images like a 'docker images'
std::vector<WsjcppDockerImage> vImages;
std::string sError;
if (!dockerApi.getImages(vImages, sError)) {
    WsjcppLog::err(TAG, "Could not get list of images '" + sError + "'");
    return -1;
}

About

C++ wrapper for docker-api (used curl inside)

Topics

cppdocker-apiwsjcpp-package

Resources

Readme
MIT license
Activity
Custom properties

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.