hocker

Version, currently 0.11 version
  • 0.1latestDec 31, 2025

github.com/arungeorgesaji/hocker

No description declared in shard.yml.

0 stars
0 dependents
License: GPL-3.0

Installation

# Add this to your shard.yml
dependencies:
  hocker:
    github: arungeorgesaji/hocker
    version: ~> 0.1

Then run:

shards install

shard.yml

Crystal
>= 1.0.0
License
GPL-3.0
Author
Arun George Saji
Target
  • hocker from src/hocker.cr

Dependencies

This version declares no dependencies.

README

hocker

Hocker is a Docker-like container runtime written in Crystal

Build and Run

Release built for Linux. Download the latest release from the releases page.

If you want to build it yourself, make sure you have Crystal and shards installed.

git clone https://github.com/arungeorgesaji/hocker.git
cd hocker 
shards build 

Commands

create    Create a new container from an image
start     Start a container
exec      Run a command inside a running container(Feature not implemented completely)
stop      Stop a running container
rm        Remove a stopped container
ps        List all containers
version   Show hocker version
help      Show this help message

Examples

# 1. Create a new container named "web" image with interactive shell
hocker create --name web

# 2. Start it 
hocker start web    # Start in foreground. 'exit' to stop.
hocker start -d web                # -d = run in background

# 4. Run commands in a running container(Feature not implemented completely)
hocker exec web hostname
hocker exec web ps aux

# 5. Run an interactive shell in a running container(Feature not implemented completely) 
hocker exec web /bin/sh

# 6. Stop a running container
hocker stop web 

# 7. List containers
hocker ps

# 8. Remove a stopped container
hocker rm web