/debian-systemd-ssh

debian and systemd in a docker image that can be connected to via ssh

Primary LanguageShell

debian-systemd-ssh

debian and systemd in a docker image that can be connected to via ssh

Usage

Usage dss <command> [option]

Commands

<nbr>          Create nbr containers
d, destroy     Destroy all containers
e, edit        Edit Dockerfile
i, info        Show running containers information
s, ssh [idx]   SSH to debian-[idx]. Missing containers will be created

Examples

# connect to debian-1 via ssh (create it first if missing)
dss s

# create 3 containers then connect to debian-2 via ssh
dss 3 && dss s 2

install with curl

curl github.com/jeromedecoster/debian-systemd-ssh/raw/master/install.sh \
    --location \
    --silent \
    | bash

install with wget

wget github.com/jeromedecoster/debian-systemd-ssh/raw/master/install.sh \
    --output-document=- \
    --quiet \
    | bash

uninstall

sudo rm --force --recursive /usr/local/lib/debian-systemd-ssh \
    && sudo rm --force --recursive /usr/local/bin/dss \
    && rm --force ~/.ssh/id_debian_systemd_ssh*

inspiration