Skip to content

Instantly share code, notes, and snippets.

Exposing the remote API of a Docker container

Context

In case you find yourself using NodeJS for backend scripting, you can use the power of API calls to manage your Docker containers.

Docker has shell bin commands but it's nice to know the remote API calls so an application can remotely control your containers. This document shows how to setup your docker service (inside Centos 7) to expose the API port.

yum clean all
rm -Rf /var/cache/yum
yum clean all
yum -y install epel-release
yum -y install git
yum -y install ansible
yum -y --enablerepo=epel install python-pip python-devel python
pip install docker-compose
docker-compose version

Getting lost in the Jungle

Openshift is designed to be a jungle, with self-contained projects! So for DevOps admins like us, who get knacked on the face by an error code pointing to a Docker containerID, we need to understand how the Docker environment swims inside the World of OpenShift.

Example -- finding a POD based on container log file:

cricket_paddle

hello1
hello2
hello3

paddle one

@melvz
melvz / install_origins_on_any_cloud.md
Last active April 24, 2018 05:20 — forked from bzon/INSTALL_OPENSHIFT_CLOUD.md
OpenShift Origins on any Cloud Provider