Docktitude - A mastering Docker tool to enhance your docker experience
Display Tree | Update | Snapshot your Docker images hierarchy and much more...
Installation
$> npm install -g docktitude
Getting started
- cd docker-contexts (where you store your Docker contexts)
- docktitude config (check the computed tags for the build according to the contexts naming convention)
- docktitude upgrade (cascade build: from the root to the leafs)
Usage examples
$> docktitude tree.+-- alpine*| +-- transmission+-- debian:latest*| +-- debian:local| +-- clamav| +-- debian:jdk8| | +-- apache/activemq| | +-- debian:jdk8-ui| | +-- debian:jdk8-scm| | | +-- idea| | +-- libreoffice| +-- vscode+-- nginx*| +-- demo-site+-- ubuntu:14.04* +-- gitlab/gitlab-runner:local
$> docktitude info+---------------+-------------------+| BASE IMAGE | DISTRIBUTION |+---------------+-------------------+| alpine | 8.333 % || debian:latest | 75.00 % || nginx | 8.333 % || ubuntu:14.04 | 8.333 % |+---------------+-------------------+
$> docktitude script libreoffice--------------------------------+++ libreoffice [ SHELL SCRIPT ]--------------------------------#!/bin/sh - docker run -it --rm --name libreoffice \ -e DISPLAY=unix$DISPLAY \ -e GDK_SCALE \ -e GDK_DPI_SCALE \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -v /etc/localtime:/etc/localtime:ro \ libreoffice--------------------------------
Documentation
$> docktitude -husage: docktitude [-h | --help | help] <command> [<args>] Commands: build <context> Build context Docker image. Use -f to force build clean Remove exited Docker containers and useless images Use -v to remove the associated volumes config List auto-configured Docker images building tags export Export all contexts except binaries to a tar archive info Show information relating to the Dockerfile files op <name> Change maintainer information in the Dockerfile files play <context> Run shell script for defined docktitude script tags print <context> Show context Dockerfile script <context> Show shell script for defined docktitude script tags snapshot Display Docker images and save the selected one (.tar) status Show local Docker images update status tree List Docker images in a tree-like format update Update external Docker images upgrade Build cascade local Docker images version Show version information
Licensing
Docktitude is licensed under Apache License, Version 2.0.