Client usage

Simplecontainer manager uses server-client architecture for the control plane communication.

Installation

Installation of the client

Client CLI is used for communication to the simplecontainer over the network using mTLS.
It is secured by mutual verification and encryption.

To install the client just download it from releases:

Releases · simplecontainer/client
Simple container manager CLI tool. Contribute to simplecontainer/client development by creating an account on GitHub.
LATEST_VERSION=$(curl -s https://raw.githubusercontent.com/simplecontainer/client/main/version)
PLATFORM=linux-amd64
curl -o client https://github.com/simplecontainer/client/releases/download/$VERSION/client-$PLATFORM
sudo mv client /usr/local/bin/smr
smr context connect https://localhost:1443 $HOME/.ssh/simplecontainer/client.pem --context localhost
{"level":"info","ts":1720694421.2032707,"caller":"context/Connect.go:40","msg":"authenticated against the smr-agent"}
smr ps
GROUP  NAME  DOCKER NAME  IMAGE  IP  PORTS  DEPS  DOCKER STATE  SMR STATE

Afterward, access to the control plane of the simplecontainer is configured.