Skip to content

Hocker

Latest

Choose a tag to compare

@arungeorgesaji arungeorgesaji released this 31 Dec 16:49

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
ion
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 webb