Skip to content

ArBin1020/Gocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

We provide a Makefile to automate dependency checking, compilation, and installation.

  1. Clone the repository
git clone [https://github.com/ArBin1020/Gocker.git](https://github.com/ArBin1020/Gocker.git)
cd gocker
  1. Build and Install Run the following command to check dependencies, build the binaries, and install them to your system path:
make check-deps && make && sudo make install

Quick Start

  1. Explore Commands First, check the available commands and flags using the help option:
gocker --help
Click to see output
Gocker is a simple container runtime written in Go.

Usage:
  gocker [command]

Available Commands:
  adjust      Adjust the resources of a running container
  completion  Generate the autocompletion script for the specified shell
  exec        Execute commands within a running container
  help        Help about any command
  images      List all locally stored images
  ps          List all containers
  pull        Pull an image from a remote repository
  rm          Remove container by ID or NAME.
  run         Run a command in a new container
  start       Restart a stopped container
  stop        Stop a running container

Flags:
  -h, --help               help for gocker
  -l, --log-level string   Set the logging level ("trace"|"debug"|"info"|"warn"|"error"|"fatal"|"panic") (default "debug")

Use "gocker [command] --help" for more information about a command.
  1. Pull an Image Download a lightweight image (e.g., Alpine Linux) from a remote repository.
sudo gocker pull alpine:latest
  1. Run a Container Start a new container in interactive mode (-it). You will be dropped into a shell inside the isolated environment.
sudo gocker run -it alpine /bin/sh

Uninstall

sudo make uninstall

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors