Giter Club home page Giter Club logo

posh-docker's Introduction

posh-docker

Powershell tab completion for Docker

⚠️

posh-docker is in maintenance mode only. There is no plan to support any new features, such as management commands.

Alternatives exist, such as DockerCompletion, which provides a more extensive tab completion experience (requires PowerShell >= 5.0 and docker cli >= 1.13)

⚠️

Build status

Commands and options

All commands (start, stop, run, ...) and their options (--attach, --cpuset-mems, ...) are autocompleted.

Command and option completion

Container and image names

Container and image names can be autocompleted. Type a command requiring a container or image name, press <TAB> and the name will be completed.

Container name completion

Installation

Prerequisite

Verify that docker can be run from PowerShell. If the command is not found, you will need to add a docker alias or add the docker installation folder (e.g. %ProgramFiles%\Docker Toolbox) to your PATH environment variable.

Windows 10 / Windows Server 2016

  1. Open a powershell prompt
  2. Run Install-Module -Scope CurrentUser posh-docker

Earlier Windows versions

  1. Install PackageManagement PowerShell Modules Preview
  2. Open a powershell prompt
  3. Run Install-Module -Scope CurrentUser posh-docker

Usage

After installation, execute the following line to enable autocompletion for the current powershell session:

Import-Module posh-docker

To make it persistent, add the above line to your profile. For example, run notepad $PROFILE and insert the line above.

Updating

To update to the latest version of posh-docker, run the following command: Update-Module posh-docker

Credits

  • Stuart Leeks: conversion to powershell module & general feedback.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.