Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 666 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 666 Bytes

easy-docker

easy-docker is a simple wrapper around Docker commands, written in Node.

Usage

  • dbash: docker exec -it CONTAINER_ID /bin/bash
  • dip: docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' CONTAINER_ID
  • dkill: docker kill CONTAINER_ID
  • dlogs: docker logs --follow CONTAINER_ID
  • drestart: docker restart CONTAINER_ID
  • dsh: docker exec -it CONTAINER_ID /bin/sh
  • dstop: docker stop CONTAINER_ID

Installation

  • Install from Github
git clone git@github.com:marcenacp/easy-docker.git
cd easy-docker/
npm install
npm link
  • Use all shortcuts listed above