Hocker is a Docker-like container runtime written in Crystal
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 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# 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