Skip to main content

Native binary

Installs the released containerws binary, prepares host directories, links the cws CLI, and installs an OS daemon that runs cws --start.

Full installer details: install/README.md in the repo.

Quick install

curl -sSL https://raw.githubusercontent.com/izetmolla/containerws/main/install/install.sh | bash

Or download first:

curl -sSL https://raw.githubusercontent.com/izetmolla/containerws/main/install/install.sh -o /tmp/cws-install.sh
sudo bash /tmp/cws-install.sh

Flags

FlagMeaning
--version vX.Y.ZInstall a specific GitHub Release tag
--binary ./containerwsInstall a local binary instead of downloading
--repo owner/nameOverride GitHub repo
--no-startInstall + enable daemon, do not start yet
--uninstallStop daemon and remove binaries/links (keeps /config)

Layout

PathPurpose
/usr/local/lib/containerws/bin/containerwsBinary
/usr/local/bin/cws, /usr/local/bin/containerwsCLI symlinks
/config/containerws/{database,ssl,vnc-sessions}App data
/etc/containerws/environmentDaemon env (ENV=production)

Daemon backends

InitUnit / helper
systemd/etc/systemd/system/containerws.service
launchd/Library/LaunchDaemons/com.izetmolla.containerws.plist
OpenRC / SysV/etc/init.d/containerws
FreeBSD/usr/local/etc/rc.d/containerws
direct/usr/local/lib/containerws/bin/cws-daemon.sh + pidfile

After install

cws version
systemctl status containerws # systemd
# or:
/usr/local/lib/containerws/bin/cws-daemon.sh status

Open http://127.0.0.1:9000.

:::tip Homebrew users Prefer brew install then sudo containerws setup — see Setup command. :::