Giter VIP home page Giter VIP logo

dockee's Introduction

Dockee

Build

Clone and build

  • clone and build with the following command:
git clone https://github.com/StLeoX/dockee.git
cd dockee
go build

Use

Commands


USAGE:
sudo dockee [global options] command [command options] [arguments...]

COMMANDS:
exec exec a command into container
init Init container process run user's process in container. Do not call it
outside
ps list all containers
logs print logs of a container
rm remove unused container
run create a container: my-docker run -ti [command]
stop stop a container
network container network commands
commit commit a container to image
image image commands
help, h Shows a list of commands or help for one command

GLOBAL OPTIONS:
--help, -h show help

run command

NAME:
   dockee - A docker-like container CLI application

USAGE:
dockee [global options] command [command options] [arguments...]

COMMANDs:
run      create a container
commit   commit a container into images
ps       list all the containers
logs     print logs of a container
exec     exec a command into container
start    start a container
stop     stop a container
rm       remove unused containers
network  container network commands
help, h  Shows a list of commands or help for one command

OPTIONs:
--it            enable tty
-d              detach container
-m value        memory limit
--cpu value     cpu limit
--cpuset value  cpuset limit
-v value        volume
--image value   the image name used to build the container
--name value    container name
-e value        set environment
--net value     container network
-p value        port mapping


GLOBAL OPTIONs:
--debug enable debug mode

EXAMPLEs:
sudo ./dockee run -it --image busybox /bin/sh
sudo ./dockee run -d --image busybox /bin/ps
sudo ./dockee network create --driver bridge --subnet 192.168.33.0/24 bridge33
sudo ./dockee run -it --image busybox --net bridge33 '/bin/ip a'

network command

NAME:
   dockee network - container network commands

USAGE:
   dockee network command [command options] [arguments...]

COMMANDs:
   create  create a container network
   list    list container network
   remove  remove container network

Images

pull a centos8 images from docker hub


docker pull roboxes/centos8:latest

docker run -it --name mycentos roboxes/centos8:latest

docker export - o mycentos.tar 835360ffl6b8 # 835360ffl6b8 is docker's container id

mv mycentos.tar dockee/Images

dockee's People

Contributors

stleox avatar physicszq avatar a870561450 avatar

Watchers

 avatar

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.