Skip to content

Latest commit

 

History

History
90 lines (60 loc) · 2.51 KB

README.md

File metadata and controls

90 lines (60 loc) · 2.51 KB

DockDuck

img/duck-logo.png

简体中文

DockDuck adds a development kit layer to a specific docker image, such as starting openssh-server and installing gdbserver, and provides some scripts as shortcuts for using docker.

It has the following features:

  1. Support adding development kits to docker images to generate dock-duck images.
  2. Support logging into dock-duck container through SSH protocol.
  3. Support logging into dock-duck containers as the same user as the host.
  4. Provide dock-duck tools to use dock-duck images quickly.

1. Prerequisites

2. Quick Start

Download suitable releases for your OS (currently only supports UNIX-like OS).

2.1. Build New DockDuck Image

There are some pre-built dock-duck images in the directory duruyao/vimicro-ai.

Modify the Dockerfile according to your needs before building.

bash build.sh [--name NEW_NAME] IMAGE

2.2. Install DockDuck Tools

bash install.sh [DIRECTORT]

Reload Bash configuration.

source ~/.bashrc

2.3. Use DockDuck Tools

Type dk -h or dk --help to show usage:

Usage: dk [OPTIONS] [COMMAND]

Tools for using dock-duck containers

Options:
  -h, --help                    Display this help message
  -v, --version                 Print version information and quit

Commands:
  attach                        Attach to a running dock-duck container
  detach                        Launch a new dock-duck container in the background
  images                        List images
  ps                            List running dock-duck containers
  run                           Run a command in a new dock-duck container
  stop                          Stop one or more running containers
  uninstall                     Uninstall dock-duck tools
  update                        Update dock-duck tools

Run 'dk COMMAND --help' for more information on a command

See more about DockDuck at https://github.com/duruyao/DockDuck

2.4. Update DockDuck Tools

dk update

2.5. Uninstall DockDuck Tools

dk uninstall