fdocker

command module
v0.0.0-...-79f2005 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

README

Introduction

fdocker is a simple container runc implementation in go

QuickStart

  1. make sure operation system have aufs filesystem
make init

make run

Usage

root@sky_big:~/gopath/src/github.com/sky-big/fdocker# fdocker
NAME:
   fdocker - fdocker is a simple container runtime for function invoke.

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

VERSION:
   0.0.0

COMMANDS:
     init     Init container process run user's process in container. Do not call it outside
     run      Create a container with namespace and cgroups limit ie: fdocker run -ti [image] [command]
     ps       list all the containers
     logs     print logs of a container
     exec     exec a command into container
     stop     stop a container
     rm       remove unused containers
     network  container network commands
     inspec   inspec a container into
     mem      get a container mem info
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version


root@sky_big:~/gopath/src/github.com/sky-big/fdocker# fdocker run -h
NAME:
   fdocker run - Create a container with namespace and cgroups limit ie: fdocker run -ti [image] [command]

USAGE:
   fdocker run [command options] [arguments...]

OPTIONS:
   --ti              enable tty
   -d                detach container
   -m value          memory limit
   --cpushare value  cpushare limit
   --cpuset value    cpuset limit
   --name value      container name
   -v value          volume
   -e value          set environment
   --net value       container network
   -p value          port mapping
   -u value          user command owner
   --images value    image store path
  1. https://github.com/xianlubird/mydocker

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL