Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 690 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 690 Bytes

Description

PoC execute docker commands on a remote Docker Host from CLI

Create a remote docker host

First we must proxy the Docker API to be access on remote mode

Install this container to offer our docker host API in remote mode:

docker run --name docker-remote-api -d -p 2375:2375 -v /var/run/docker.sock:/var/run/docker.sock jarkt/docker-remote-api

Execute any command from CLI to Remote host

Execute any docker command. For example see all containers running in our remote docker host:

docker -H=<REMOTE_DOCKER_IP:2375> ps

Some reference links

Run commands on remote Docker host